using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Windows.Forms;
using C1.Win.C1Input;
using C1.Win.C1List;
using C1.Win.C1TrueDBGrid;
using PCSComProduction.WorkOrder.BO;
using PCSComUtils.Common;
using PCSComUtils.Common.BO;
using PCSComUtils.PCSExc;
using PCSUtils.Log;
using PCSUtils.Utils;
using AlignHorzEnum = C1.Win.C1TrueDBGrid.AlignHorzEnum;
using CancelEventArgs = System.ComponentModel.CancelEventArgs;
using PresentationEnum = C1.Win.C1TrueDBGrid.PresentationEnum;
using System.Collections.Generic;
using PCSComUtils.DataContext;

namespace PCSProduction.WorkOrder
{
    /// <summary>
    /// Summary description for ReleaseWorkOrder.
    /// </summary>
    public class ApprovalWorkOrderCompletion : Form
    {
        #region generated variable
        private Label lblCCN;
        private Button btnSearch;
        private CheckBox chkSelectAll;
        private Button btnClose;
        private Button btnHelp;
        private Button btnRelease;
        private C1Combo cboCCN;
        private Button btnWorkOrder;
        private TextBox txtWorkOrder;
        private Container components = null;
        private TextBox txtProductionLine;
        private Button btnProductionLine;
        private ComboBox cboApproval;
        private Label lblStatus;
        private Label lblWO;
        private Label lblProductionLine;
        private Label lblFromStartDate;
        private C1DateEdit dtmFromStartDate;
        private Label lblToStartDate;
        private C1DateEdit dtmToStartDate;
        #endregion

        #region My variable
        const string THIS = "PCSProduction.WorkOrder.ApprovalWorkOrderCompletion";
        const string SELECT = "Selected";
        const string RELEASE = "release";
        const string WONO = "WorkOrderNo";
        const string PARTNUMBER = "PartNumber";
        const string PARTNAME = "PartName";
        const string MODEL = "Model";
        const string UM = "UM";
        const string V_WOUNRELEASE = "V_WORelease";
        private DataTable dtbGridLayOut;
        private bool blnStateOfCheck = false;
        private bool blnSearchResult = false;
        private const string TRUE = "True";
        DataSet dstApprovalWOCompletion = new DataSet();
        private Label lblRequireInspection;
        private Label lblNotPass;
        private Label lblQualitiAssured;
        private Label lblFGoodsCode;
        private TextBox txtFGoodsCode;
        private Button btnFGoodsCode;
        private TextBox txtPartNumber;
        private Button btnPartNumber;
        private Label lblPartNumber;
        private C1TrueDBGrid gridData;
        private Button btnUnRelease;
        DataSet dstGridData;
        DataSet dsetTemp;
        #endregion My variable

        #region Windows Form Designer generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ApprovalWorkOrderCompletion));
            this.btnWorkOrder = new System.Windows.Forms.Button();
            this.chkSelectAll = new System.Windows.Forms.CheckBox();
            this.txtWorkOrder = new System.Windows.Forms.TextBox();
            this.lblWO = new System.Windows.Forms.Label();
            this.lblCCN = new System.Windows.Forms.Label();
            this.btnClose = new System.Windows.Forms.Button();
            this.btnHelp = new System.Windows.Forms.Button();
            this.btnRelease = new System.Windows.Forms.Button();
            this.btnSearch = new System.Windows.Forms.Button();
            this.lblFGoodsCode = new System.Windows.Forms.Label();
            this.txtFGoodsCode = new System.Windows.Forms.TextBox();
            this.btnFGoodsCode = new System.Windows.Forms.Button();
            this.cboCCN = new C1.Win.C1List.C1Combo();
            this.txtProductionLine = new System.Windows.Forms.TextBox();
            this.btnProductionLine = new System.Windows.Forms.Button();
            this.lblProductionLine = new System.Windows.Forms.Label();
            this.cboApproval = new System.Windows.Forms.ComboBox();
            this.lblStatus = new System.Windows.Forms.Label();
            this.lblRequireInspection = new System.Windows.Forms.Label();
            this.lblQualitiAssured = new System.Windows.Forms.Label();
            this.lblNotPass = new System.Windows.Forms.Label();
            this.lblFromStartDate = new System.Windows.Forms.Label();
            this.dtmFromStartDate = new C1.Win.C1Input.C1DateEdit();
            this.lblToStartDate = new System.Windows.Forms.Label();
            this.dtmToStartDate = new C1.Win.C1Input.C1DateEdit();
            this.txtPartNumber = new System.Windows.Forms.TextBox();
            this.btnPartNumber = new System.Windows.Forms.Button();
            this.lblPartNumber = new System.Windows.Forms.Label();
            this.btnUnRelease = new System.Windows.Forms.Button();
            this.gridData = new C1.Win.C1TrueDBGrid.C1TrueDBGrid();
            ((System.ComponentModel.ISupportInitialize)(this.cboCCN)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.dtmFromStartDate)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.dtmToStartDate)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.gridData)).BeginInit();
            this.SuspendLayout();
            // 
            // btnWorkOrder
            // 
            this.btnWorkOrder.AccessibleDescription = resources.GetString("btnWorkOrder.AccessibleDescription");
            this.btnWorkOrder.AccessibleName = resources.GetString("btnWorkOrder.AccessibleName");
            this.btnWorkOrder.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnWorkOrder.Anchor")));
            this.btnWorkOrder.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnWorkOrder.BackgroundImage")));
            this.btnWorkOrder.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnWorkOrder.Dock")));
            this.btnWorkOrder.Enabled = ((bool)(resources.GetObject("btnWorkOrder.Enabled")));
            this.btnWorkOrder.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnWorkOrder.FlatStyle")));
            this.btnWorkOrder.Font = ((System.Drawing.Font)(resources.GetObject("btnWorkOrder.Font")));
            this.btnWorkOrder.Image = ((System.Drawing.Image)(resources.GetObject("btnWorkOrder.Image")));
            this.btnWorkOrder.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnWorkOrder.ImageAlign")));
            this.btnWorkOrder.ImageIndex = ((int)(resources.GetObject("btnWorkOrder.ImageIndex")));
            this.btnWorkOrder.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnWorkOrder.ImeMode")));
            this.btnWorkOrder.Location = ((System.Drawing.Point)(resources.GetObject("btnWorkOrder.Location")));
            this.btnWorkOrder.Name = "btnWorkOrder";
            this.btnWorkOrder.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnWorkOrder.RightToLeft")));
            this.btnWorkOrder.Size = ((System.Drawing.Size)(resources.GetObject("btnWorkOrder.Size")));
            this.btnWorkOrder.TabIndex = ((int)(resources.GetObject("btnWorkOrder.TabIndex")));
            this.btnWorkOrder.Text = resources.GetString("btnWorkOrder.Text");
            this.btnWorkOrder.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnWorkOrder.TextAlign")));
            this.btnWorkOrder.Visible = ((bool)(resources.GetObject("btnWorkOrder.Visible")));
            this.btnWorkOrder.Click += new System.EventHandler(this.btnWorkOrder_Click);
            // 
            // chkSelectAll
            // 
            this.chkSelectAll.AccessibleDescription = resources.GetString("chkSelectAll.AccessibleDescription");
            this.chkSelectAll.AccessibleName = resources.GetString("chkSelectAll.AccessibleName");
            this.chkSelectAll.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("chkSelectAll.Anchor")));
            this.chkSelectAll.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("chkSelectAll.Appearance")));
            this.chkSelectAll.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("chkSelectAll.BackgroundImage")));
            this.chkSelectAll.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkSelectAll.CheckAlign")));
            this.chkSelectAll.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("chkSelectAll.Dock")));
            this.chkSelectAll.Enabled = ((bool)(resources.GetObject("chkSelectAll.Enabled")));
            this.chkSelectAll.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("chkSelectAll.FlatStyle")));
            this.chkSelectAll.Font = ((System.Drawing.Font)(resources.GetObject("chkSelectAll.Font")));
            this.chkSelectAll.Image = ((System.Drawing.Image)(resources.GetObject("chkSelectAll.Image")));
            this.chkSelectAll.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkSelectAll.ImageAlign")));
            this.chkSelectAll.ImageIndex = ((int)(resources.GetObject("chkSelectAll.ImageIndex")));
            this.chkSelectAll.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("chkSelectAll.ImeMode")));
            this.chkSelectAll.Location = ((System.Drawing.Point)(resources.GetObject("chkSelectAll.Location")));
            this.chkSelectAll.Name = "chkSelectAll";
            this.chkSelectAll.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("chkSelectAll.RightToLeft")));
            this.chkSelectAll.Size = ((System.Drawing.Size)(resources.GetObject("chkSelectAll.Size")));
            this.chkSelectAll.TabIndex = ((int)(resources.GetObject("chkSelectAll.TabIndex")));
            this.chkSelectAll.Text = resources.GetString("chkSelectAll.Text");
            this.chkSelectAll.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkSelectAll.TextAlign")));
            this.chkSelectAll.Visible = ((bool)(resources.GetObject("chkSelectAll.Visible")));
            this.chkSelectAll.Enter += new System.EventHandler(this.chkSelectAll_Enter);
            this.chkSelectAll.Leave += new System.EventHandler(this.chkSelectAll_Leave);
            this.chkSelectAll.CheckedChanged += new System.EventHandler(this.chkSelectAll_CheckedChanged);
            // 
            // txtWorkOrder
            // 
            this.txtWorkOrder.AccessibleDescription = resources.GetString("txtWorkOrder.AccessibleDescription");
            this.txtWorkOrder.AccessibleName = resources.GetString("txtWorkOrder.AccessibleName");
            this.txtWorkOrder.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtWorkOrder.Anchor")));
            this.txtWorkOrder.AutoSize = ((bool)(resources.GetObject("txtWorkOrder.AutoSize")));
            this.txtWorkOrder.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtWorkOrder.BackgroundImage")));
            this.txtWorkOrder.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtWorkOrder.Dock")));
            this.txtWorkOrder.Enabled = ((bool)(resources.GetObject("txtWorkOrder.Enabled")));
            this.txtWorkOrder.Font = ((System.Drawing.Font)(resources.GetObject("txtWorkOrder.Font")));
            this.txtWorkOrder.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtWorkOrder.ImeMode")));
            this.txtWorkOrder.Location = ((System.Drawing.Point)(resources.GetObject("txtWorkOrder.Location")));
            this.txtWorkOrder.MaxLength = ((int)(resources.GetObject("txtWorkOrder.MaxLength")));
            this.txtWorkOrder.Multiline = ((bool)(resources.GetObject("txtWorkOrder.Multiline")));
            this.txtWorkOrder.Name = "txtWorkOrder";
            this.txtWorkOrder.PasswordChar = ((char)(resources.GetObject("txtWorkOrder.PasswordChar")));
            this.txtWorkOrder.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtWorkOrder.RightToLeft")));
            this.txtWorkOrder.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtWorkOrder.ScrollBars")));
            this.txtWorkOrder.Size = ((System.Drawing.Size)(resources.GetObject("txtWorkOrder.Size")));
            this.txtWorkOrder.TabIndex = ((int)(resources.GetObject("txtWorkOrder.TabIndex")));
            this.txtWorkOrder.Tag = "0";
            this.txtWorkOrder.Text = resources.GetString("txtWorkOrder.Text");
            this.txtWorkOrder.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtWorkOrder.TextAlign")));
            this.txtWorkOrder.Visible = ((bool)(resources.GetObject("txtWorkOrder.Visible")));
            this.txtWorkOrder.WordWrap = ((bool)(resources.GetObject("txtWorkOrder.WordWrap")));
            this.txtWorkOrder.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtWorkOrder_KeyDown);
            this.txtWorkOrder.Validating += new System.ComponentModel.CancelEventHandler(this.txtWorkOrder_Validating);
            this.txtWorkOrder.Enter += new System.EventHandler(this.OnEnterControl);
            // 
            // lblWO
            // 
            this.lblWO.AccessibleDescription = resources.GetString("lblWO.AccessibleDescription");
            this.lblWO.AccessibleName = resources.GetString("lblWO.AccessibleName");
            this.lblWO.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblWO.Anchor")));
            this.lblWO.AutoSize = ((bool)(resources.GetObject("lblWO.AutoSize")));
            this.lblWO.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblWO.Dock")));
            this.lblWO.Enabled = ((bool)(resources.GetObject("lblWO.Enabled")));
            this.lblWO.Font = ((System.Drawing.Font)(resources.GetObject("lblWO.Font")));
            this.lblWO.Image = ((System.Drawing.Image)(resources.GetObject("lblWO.Image")));
            this.lblWO.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblWO.ImageAlign")));
            this.lblWO.ImageIndex = ((int)(resources.GetObject("lblWO.ImageIndex")));
            this.lblWO.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblWO.ImeMode")));
            this.lblWO.Location = ((System.Drawing.Point)(resources.GetObject("lblWO.Location")));
            this.lblWO.Name = "lblWO";
            this.lblWO.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblWO.RightToLeft")));
            this.lblWO.Size = ((System.Drawing.Size)(resources.GetObject("lblWO.Size")));
            this.lblWO.TabIndex = ((int)(resources.GetObject("lblWO.TabIndex")));
            this.lblWO.Tag = "0";
            this.lblWO.Text = resources.GetString("lblWO.Text");
            this.lblWO.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblWO.TextAlign")));
            this.lblWO.Visible = ((bool)(resources.GetObject("lblWO.Visible")));
            // 
            // lblCCN
            // 
            this.lblCCN.AccessibleDescription = resources.GetString("lblCCN.AccessibleDescription");
            this.lblCCN.AccessibleName = resources.GetString("lblCCN.AccessibleName");
            this.lblCCN.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblCCN.Anchor")));
            this.lblCCN.AutoSize = ((bool)(resources.GetObject("lblCCN.AutoSize")));
            this.lblCCN.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblCCN.Dock")));
            this.lblCCN.Enabled = ((bool)(resources.GetObject("lblCCN.Enabled")));
            this.lblCCN.Font = ((System.Drawing.Font)(resources.GetObject("lblCCN.Font")));
            this.lblCCN.ForeColor = System.Drawing.Color.Maroon;
            this.lblCCN.Image = ((System.Drawing.Image)(resources.GetObject("lblCCN.Image")));
            this.lblCCN.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCCN.ImageAlign")));
            this.lblCCN.ImageIndex = ((int)(resources.GetObject("lblCCN.ImageIndex")));
            this.lblCCN.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblCCN.ImeMode")));
            this.lblCCN.Location = ((System.Drawing.Point)(resources.GetObject("lblCCN.Location")));
            this.lblCCN.Name = "lblCCN";
            this.lblCCN.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblCCN.RightToLeft")));
            this.lblCCN.Size = ((System.Drawing.Size)(resources.GetObject("lblCCN.Size")));
            this.lblCCN.TabIndex = ((int)(resources.GetObject("lblCCN.TabIndex")));
            this.lblCCN.Text = resources.GetString("lblCCN.Text");
            this.lblCCN.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCCN.TextAlign")));
            this.lblCCN.Visible = ((bool)(resources.GetObject("lblCCN.Visible")));
            // 
            // btnClose
            // 
            this.btnClose.AccessibleDescription = resources.GetString("btnClose.AccessibleDescription");
            this.btnClose.AccessibleName = resources.GetString("btnClose.AccessibleName");
            this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnClose.Anchor")));
            this.btnClose.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClose.BackgroundImage")));
            this.btnClose.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnClose.Dock")));
            this.btnClose.Enabled = ((bool)(resources.GetObject("btnClose.Enabled")));
            this.btnClose.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnClose.FlatStyle")));
            this.btnClose.Font = ((System.Drawing.Font)(resources.GetObject("btnClose.Font")));
            this.btnClose.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.Image")));
            this.btnClose.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.ImageAlign")));
            this.btnClose.ImageIndex = ((int)(resources.GetObject("btnClose.ImageIndex")));
            this.btnClose.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnClose.ImeMode")));
            this.btnClose.Location = ((System.Drawing.Point)(resources.GetObject("btnClose.Location")));
            this.btnClose.Name = "btnClose";
            this.btnClose.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnClose.RightToLeft")));
            this.btnClose.Size = ((System.Drawing.Size)(resources.GetObject("btnClose.Size")));
            this.btnClose.TabIndex = ((int)(resources.GetObject("btnClose.TabIndex")));
            this.btnClose.Text = resources.GetString("btnClose.Text");
            this.btnClose.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.TextAlign")));
            this.btnClose.Visible = ((bool)(resources.GetObject("btnClose.Visible")));
            this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
            // 
            // btnHelp
            // 
            this.btnHelp.AccessibleDescription = resources.GetString("btnHelp.AccessibleDescription");
            this.btnHelp.AccessibleName = resources.GetString("btnHelp.AccessibleName");
            this.btnHelp.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnHelp.Anchor")));
            this.btnHelp.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnHelp.BackgroundImage")));
            this.btnHelp.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnHelp.Dock")));
            this.btnHelp.Enabled = ((bool)(resources.GetObject("btnHelp.Enabled")));
            this.btnHelp.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnHelp.FlatStyle")));
            this.btnHelp.Font = ((System.Drawing.Font)(resources.GetObject("btnHelp.Font")));
            this.btnHelp.Image = ((System.Drawing.Image)(resources.GetObject("btnHelp.Image")));
            this.btnHelp.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.ImageAlign")));
            this.btnHelp.ImageIndex = ((int)(resources.GetObject("btnHelp.ImageIndex")));
            this.btnHelp.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnHelp.ImeMode")));
            this.btnHelp.Location = ((System.Drawing.Point)(resources.GetObject("btnHelp.Location")));
            this.btnHelp.Name = "btnHelp";
            this.btnHelp.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnHelp.RightToLeft")));
            this.btnHelp.Size = ((System.Drawing.Size)(resources.GetObject("btnHelp.Size")));
            this.btnHelp.TabIndex = ((int)(resources.GetObject("btnHelp.TabIndex")));
            this.btnHelp.Text = resources.GetString("btnHelp.Text");
            this.btnHelp.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.TextAlign")));
            this.btnHelp.Visible = ((bool)(resources.GetObject("btnHelp.Visible")));
            // 
            // btnRelease
            // 
            this.btnRelease.AccessibleDescription = resources.GetString("btnRelease.AccessibleDescription");
            this.btnRelease.AccessibleName = resources.GetString("btnRelease.AccessibleName");
            this.btnRelease.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnRelease.Anchor")));
            this.btnRelease.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnRelease.BackgroundImage")));
            this.btnRelease.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnRelease.Dock")));
            this.btnRelease.Enabled = ((bool)(resources.GetObject("btnRelease.Enabled")));
            this.btnRelease.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnRelease.FlatStyle")));
            this.btnRelease.Font = ((System.Drawing.Font)(resources.GetObject("btnRelease.Font")));
            this.btnRelease.Image = ((System.Drawing.Image)(resources.GetObject("btnRelease.Image")));
            this.btnRelease.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnRelease.ImageAlign")));
            this.btnRelease.ImageIndex = ((int)(resources.GetObject("btnRelease.ImageIndex")));
            this.btnRelease.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnRelease.ImeMode")));
            this.btnRelease.Location = ((System.Drawing.Point)(resources.GetObject("btnRelease.Location")));
            this.btnRelease.Name = "btnRelease";
            this.btnRelease.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnRelease.RightToLeft")));
            this.btnRelease.Size = ((System.Drawing.Size)(resources.GetObject("btnRelease.Size")));
            this.btnRelease.TabIndex = ((int)(resources.GetObject("btnRelease.TabIndex")));
            this.btnRelease.Text = resources.GetString("btnRelease.Text");
            this.btnRelease.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnRelease.TextAlign")));
            this.btnRelease.Visible = ((bool)(resources.GetObject("btnRelease.Visible")));
            this.btnRelease.Click += new System.EventHandler(this.btnRelease_Click);
            // 
            // btnSearch
            // 
            this.btnSearch.AccessibleDescription = resources.GetString("btnSearch.AccessibleDescription");
            this.btnSearch.AccessibleName = resources.GetString("btnSearch.AccessibleName");
            this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnSearch.Anchor")));
            this.btnSearch.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSearch.BackgroundImage")));
            this.btnSearch.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnSearch.Dock")));
            this.btnSearch.Enabled = ((bool)(resources.GetObject("btnSearch.Enabled")));
            this.btnSearch.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnSearch.FlatStyle")));
            this.btnSearch.Font = ((System.Drawing.Font)(resources.GetObject("btnSearch.Font")));
            this.btnSearch.Image = ((System.Drawing.Image)(resources.GetObject("btnSearch.Image")));
            this.btnSearch.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSearch.ImageAlign")));
            this.btnSearch.ImageIndex = ((int)(resources.GetObject("btnSearch.ImageIndex")));
            this.btnSearch.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnSearch.ImeMode")));
            this.btnSearch.Location = ((System.Drawing.Point)(resources.GetObject("btnSearch.Location")));
            this.btnSearch.Name = "btnSearch";
            this.btnSearch.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnSearch.RightToLeft")));
            this.btnSearch.Size = ((System.Drawing.Size)(resources.GetObject("btnSearch.Size")));
            this.btnSearch.TabIndex = ((int)(resources.GetObject("btnSearch.TabIndex")));
            this.btnSearch.Text = resources.GetString("btnSearch.Text");
            this.btnSearch.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSearch.TextAlign")));
            this.btnSearch.Visible = ((bool)(resources.GetObject("btnSearch.Visible")));
            this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
            // 
            // lblFGoodsCode
            // 
            this.lblFGoodsCode.AccessibleDescription = resources.GetString("lblFGoodsCode.AccessibleDescription");
            this.lblFGoodsCode.AccessibleName = resources.GetString("lblFGoodsCode.AccessibleName");
            this.lblFGoodsCode.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblFGoodsCode.Anchor")));
            this.lblFGoodsCode.AutoSize = ((bool)(resources.GetObject("lblFGoodsCode.AutoSize")));
            this.lblFGoodsCode.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblFGoodsCode.Dock")));
            this.lblFGoodsCode.Enabled = ((bool)(resources.GetObject("lblFGoodsCode.Enabled")));
            this.lblFGoodsCode.Font = ((System.Drawing.Font)(resources.GetObject("lblFGoodsCode.Font")));
            this.lblFGoodsCode.Image = ((System.Drawing.Image)(resources.GetObject("lblFGoodsCode.Image")));
            this.lblFGoodsCode.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblFGoodsCode.ImageAlign")));
            this.lblFGoodsCode.ImageIndex = ((int)(resources.GetObject("lblFGoodsCode.ImageIndex")));
            this.lblFGoodsCode.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblFGoodsCode.ImeMode")));
            this.lblFGoodsCode.Location = ((System.Drawing.Point)(resources.GetObject("lblFGoodsCode.Location")));
            this.lblFGoodsCode.Name = "lblFGoodsCode";
            this.lblFGoodsCode.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblFGoodsCode.RightToLeft")));
            this.lblFGoodsCode.Size = ((System.Drawing.Size)(resources.GetObject("lblFGoodsCode.Size")));
            this.lblFGoodsCode.TabIndex = ((int)(resources.GetObject("lblFGoodsCode.TabIndex")));
            this.lblFGoodsCode.Text = resources.GetString("lblFGoodsCode.Text");
            this.lblFGoodsCode.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblFGoodsCode.TextAlign")));
            this.lblFGoodsCode.Visible = ((bool)(resources.GetObject("lblFGoodsCode.Visible")));
            // 
            // txtFGoodsCode
            // 
            this.txtFGoodsCode.AccessibleDescription = resources.GetString("txtFGoodsCode.AccessibleDescription");
            this.txtFGoodsCode.AccessibleName = resources.GetString("txtFGoodsCode.AccessibleName");
            this.txtFGoodsCode.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtFGoodsCode.Anchor")));
            this.txtFGoodsCode.AutoSize = ((bool)(resources.GetObject("txtFGoodsCode.AutoSize")));
            this.txtFGoodsCode.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtFGoodsCode.BackgroundImage")));
            this.txtFGoodsCode.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtFGoodsCode.Dock")));
            this.txtFGoodsCode.Enabled = ((bool)(resources.GetObject("txtFGoodsCode.Enabled")));
            this.txtFGoodsCode.Font = ((System.Drawing.Font)(resources.GetObject("txtFGoodsCode.Font")));
            this.txtFGoodsCode.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtFGoodsCode.ImeMode")));
            this.txtFGoodsCode.Location = ((System.Drawing.Point)(resources.GetObject("txtFGoodsCode.Location")));
            this.txtFGoodsCode.MaxLength = ((int)(resources.GetObject("txtFGoodsCode.MaxLength")));
            this.txtFGoodsCode.Multiline = ((bool)(resources.GetObject("txtFGoodsCode.Multiline")));
            this.txtFGoodsCode.Name = "txtFGoodsCode";
            this.txtFGoodsCode.PasswordChar = ((char)(resources.GetObject("txtFGoodsCode.PasswordChar")));
            this.txtFGoodsCode.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtFGoodsCode.RightToLeft")));
            this.txtFGoodsCode.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtFGoodsCode.ScrollBars")));
            this.txtFGoodsCode.Size = ((System.Drawing.Size)(resources.GetObject("txtFGoodsCode.Size")));
            this.txtFGoodsCode.TabIndex = ((int)(resources.GetObject("txtFGoodsCode.TabIndex")));
            this.txtFGoodsCode.Text = resources.GetString("txtFGoodsCode.Text");
            this.txtFGoodsCode.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtFGoodsCode.TextAlign")));
            this.txtFGoodsCode.Visible = ((bool)(resources.GetObject("txtFGoodsCode.Visible")));
            this.txtFGoodsCode.WordWrap = ((bool)(resources.GetObject("txtFGoodsCode.WordWrap")));
            this.txtFGoodsCode.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtFGoodsCode_KeyDown);
            this.txtFGoodsCode.Validating += new System.ComponentModel.CancelEventHandler(this.txtFGoodsCode_Validating);
            this.txtFGoodsCode.Enter += new System.EventHandler(this.OnEnterControl);
            // 
            // btnFGoodsCode
            // 
            this.btnFGoodsCode.AccessibleDescription = resources.GetString("btnFGoodsCode.AccessibleDescription");
            this.btnFGoodsCode.AccessibleName = resources.GetString("btnFGoodsCode.AccessibleName");
            this.btnFGoodsCode.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnFGoodsCode.Anchor")));
            this.btnFGoodsCode.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnFGoodsCode.BackgroundImage")));
            this.btnFGoodsCode.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnFGoodsCode.Dock")));
            this.btnFGoodsCode.Enabled = ((bool)(resources.GetObject("btnFGoodsCode.Enabled")));
            this.btnFGoodsCode.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnFGoodsCode.FlatStyle")));
            this.btnFGoodsCode.Font = ((System.Drawing.Font)(resources.GetObject("btnFGoodsCode.Font")));
            this.btnFGoodsCode.Image = ((System.Drawing.Image)(resources.GetObject("btnFGoodsCode.Image")));
            this.btnFGoodsCode.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnFGoodsCode.ImageAlign")));
            this.btnFGoodsCode.ImageIndex = ((int)(resources.GetObject("btnFGoodsCode.ImageIndex")));
            this.btnFGoodsCode.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnFGoodsCode.ImeMode")));
            this.btnFGoodsCode.Location = ((System.Drawing.Point)(resources.GetObject("btnFGoodsCode.Location")));
            this.btnFGoodsCode.Name = "btnFGoodsCode";
            this.btnFGoodsCode.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnFGoodsCode.RightToLeft")));
            this.btnFGoodsCode.Size = ((System.Drawing.Size)(resources.GetObject("btnFGoodsCode.Size")));
            this.btnFGoodsCode.TabIndex = ((int)(resources.GetObject("btnFGoodsCode.TabIndex")));
            this.btnFGoodsCode.Text = resources.GetString("btnFGoodsCode.Text");
            this.btnFGoodsCode.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnFGoodsCode.TextAlign")));
            this.btnFGoodsCode.Visible = ((bool)(resources.GetObject("btnFGoodsCode.Visible")));
            this.btnFGoodsCode.Click += new System.EventHandler(this.btnFGoodsCode_Click);
            // 
            // cboCCN
            // 
            this.cboCCN.AccessibleDescription = resources.GetString("cboCCN.AccessibleDescription");
            this.cboCCN.AccessibleName = resources.GetString("cboCCN.AccessibleName");
            this.cboCCN.AddItemSeparator = ';';
            this.cboCCN.AllowRowSizing = C1.Win.C1List.RowSizingEnum.AllRows;
            this.cboCCN.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("cboCCN.Anchor")));
            this.cboCCN.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("cboCCN.BackgroundImage")));
            this.cboCCN.Caption = "";
            this.cboCCN.CaptionHeight = 17;
            this.cboCCN.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            this.cboCCN.ColumnCaptionHeight = 17;
            this.cboCCN.ColumnFooterHeight = 17;
            this.cboCCN.ComboStyle = C1.Win.C1List.ComboStyleEnum.DropdownList;
            this.cboCCN.ContentHeight = 15;
            this.cboCCN.DeadAreaBackColor = System.Drawing.Color.Empty;
            this.cboCCN.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("cboCCN.Dock")));
            this.cboCCN.EditorBackColor = System.Drawing.SystemColors.Window;
            this.cboCCN.EditorFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.cboCCN.EditorForeColor = System.Drawing.SystemColors.WindowText;
            this.cboCCN.EditorHeight = 15;
            this.cboCCN.Enabled = ((bool)(resources.GetObject("cboCCN.Enabled")));
            this.cboCCN.FlatStyle = C1.Win.C1List.FlatModeEnum.System;
            this.cboCCN.Font = ((System.Drawing.Font)(resources.GetObject("cboCCN.Font")));
            this.cboCCN.GapHeight = 2;
            this.cboCCN.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("cboCCN.ImeMode")));
            this.cboCCN.ItemHeight = 15;
            this.cboCCN.Location = ((System.Drawing.Point)(resources.GetObject("cboCCN.Location")));
            this.cboCCN.MatchEntryTimeout = ((long)(2000));
            this.cboCCN.MaxDropDownItems = ((short)(5));
            this.cboCCN.MaxLength = 32767;
            this.cboCCN.MouseCursor = System.Windows.Forms.Cursors.Default;
            this.cboCCN.Name = "cboCCN";
            this.cboCCN.PartialRightColumn = false;
            this.cboCCN.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("cboCCN.RightToLeft")));
            this.cboCCN.RowDivider.Color = System.Drawing.Color.DarkGray;
            this.cboCCN.RowDivider.Style = C1.Win.C1List.LineStyleEnum.None;
            this.cboCCN.RowSubDividerColor = System.Drawing.Color.DarkGray;
            this.cboCCN.Size = ((System.Drawing.Size)(resources.GetObject("cboCCN.Size")));
            this.cboCCN.TabIndex = ((int)(resources.GetObject("cboCCN.TabIndex")));
            this.cboCCN.Text = resources.GetString("cboCCN.Text");
            this.cboCCN.Visible = ((bool)(resources.GetObject("cboCCN.Visible")));
            this.cboCCN.Enter += new System.EventHandler(this.OnEnterControl);
            this.cboCCN.Leave += new System.EventHandler(this.OnLeaveControl);
            this.cboCCN.PropBag = "<?xml version=\"1.0\"?><Blob><Styles type=\"C1.Win.C1List.Design.ContextWrapper\"><Da" +
                "ta>Group{BackColor:ControlDark;Border:None,,0, 0, 0, 0;AlignVert:Center;}Style2{" +
                "}Style5{}Style4{}Style7{}Style6{}EvenRow{BackColor:Aqua;}Selected{ForeColor:High" +
                "lightText;BackColor:Highlight;}Style3{}Inactive{ForeColor:InactiveCaptionText;Ba" +
                "ckColor:InactiveCaption;}Footer{}Caption{AlignHorz:Center;}Normal{}HighlightRow{" +
                "ForeColor:HighlightText;BackColor:Highlight;}Style9{AlignHorz:Near;}OddRow{}Reco" +
                "rdSelector{AlignImage:Center;}Heading{Wrap:True;AlignVert:Center;Border:Raised,," +
                "1, 1, 1, 1;ForeColor:ControlText;BackColor:Control;}Style8{}Style10{}Style11{}St" +
                "yle1{}</Data></Styles><Splits><C1.Win.C1List.ListBoxView AllowColSelect=\"False\" " +
                "Name=\"\" CaptionHeight=\"17\" ColumnCaptionHeight=\"17\" ColumnFooterHeight=\"17\" Vert" +
                "icalScrollGroup=\"1\" HorizontalScrollGroup=\"1\"><ClientRect>0, 0, 116, 156</Client" +
                "Rect><VScrollBar><Width>17</Width></VScrollBar><HScrollBar><Height>17</Height></" +
                "HScrollBar><CaptionStyle parent=\"Style2\" me=\"Style9\" /><EvenRowStyle parent=\"Eve" +
                "nRow\" me=\"Style7\" /><FooterStyle parent=\"Footer\" me=\"Style3\" /><GroupStyle paren" +
                "t=\"Group\" me=\"Style11\" /><HeadingStyle parent=\"Heading\" me=\"Style2\" /><HighLight" +
                "RowStyle parent=\"HighlightRow\" me=\"Style6\" /><InactiveStyle parent=\"Inactive\" me" +
                "=\"Style4\" /><OddRowStyle parent=\"OddRow\" me=\"Style8\" /><RecordSelectorStyle pare" +
                "nt=\"RecordSelector\" me=\"Style10\" /><SelectedStyle parent=\"Selected\" me=\"Style5\" " +
                "/><Style parent=\"Normal\" me=\"Style1\" /></C1.Win.C1List.ListBoxView></Splits><Nam" +
                "edStyles><Style parent=\"\" me=\"Normal\" /><Style parent=\"Normal\" me=\"Heading\" /><S" +
                "tyle parent=\"Heading\" me=\"Footer\" /><Style parent=\"Heading\" me=\"Caption\" /><Styl" +
                "e parent=\"Heading\" me=\"Inactive\" /><Style parent=\"Normal\" me=\"Selected\" /><Style" +
                " parent=\"Normal\" me=\"HighlightRow\" /><Style parent=\"Normal\" me=\"EvenRow\" /><Styl" +
                "e parent=\"Normal\" me=\"OddRow\" /><Style parent=\"Heading\" me=\"RecordSelector\" /><S" +
                "tyle parent=\"Caption\" me=\"Group\" /></NamedStyles><vertSplits>1</vertSplits><horz" +
                "Splits>1</horzSplits><Layout>Modified</Layout><DefaultRecSelWidth>16</DefaultRec" +
                "SelWidth></Blob>";
            // 
            // txtProductionLine
            // 
            this.txtProductionLine.AccessibleDescription = resources.GetString("txtProductionLine.AccessibleDescription");
            this.txtProductionLine.AccessibleName = resources.GetString("txtProductionLine.AccessibleName");
            this.txtProductionLine.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtProductionLine.Anchor")));
            this.txtProductionLine.AutoSize = ((bool)(resources.GetObject("txtProductionLine.AutoSize")));
            this.txtProductionLine.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtProductionLine.BackgroundImage")));
            this.txtProductionLine.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtProductionLine.Dock")));
            this.txtProductionLine.Enabled = ((bool)(resources.GetObject("txtProductionLine.Enabled")));
            this.txtProductionLine.Font = ((System.Drawing.Font)(resources.GetObject("txtProductionLine.Font")));
            this.txtProductionLine.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtProductionLine.ImeMode")));
            this.txtProductionLine.Location = ((System.Drawing.Point)(resources.GetObject("txtProductionLine.Location")));
            this.txtProductionLine.MaxLength = ((int)(resources.GetObject("txtProductionLine.MaxLength")));
            this.txtProductionLine.Multiline = ((bool)(resources.GetObject("txtProductionLine.Multiline")));
            this.txtProductionLine.Name = "txtProductionLine";
            this.txtProductionLine.PasswordChar = ((char)(resources.GetObject("txtProductionLine.PasswordChar")));
            this.txtProductionLine.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtProductionLine.RightToLeft")));
            this.txtProductionLine.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtProductionLine.ScrollBars")));
            this.txtProductionLine.Size = ((System.Drawing.Size)(resources.GetObject("txtProductionLine.Size")));
            this.txtProductionLine.TabIndex = ((int)(resources.GetObject("txtProductionLine.TabIndex")));
            this.txtProductionLine.Tag = "0";
            this.txtProductionLine.Text = resources.GetString("txtProductionLine.Text");
            this.txtProductionLine.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtProductionLine.TextAlign")));
            this.txtProductionLine.Visible = ((bool)(resources.GetObject("txtProductionLine.Visible")));
            this.txtProductionLine.WordWrap = ((bool)(resources.GetObject("txtProductionLine.WordWrap")));
            this.txtProductionLine.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtProductionLine_KeyDown);
            this.txtProductionLine.Validating += new System.ComponentModel.CancelEventHandler(this.txtProductionLine_Validating);
            // 
            // btnProductionLine
            // 
            this.btnProductionLine.AccessibleDescription = resources.GetString("btnProductionLine.AccessibleDescription");
            this.btnProductionLine.AccessibleName = resources.GetString("btnProductionLine.AccessibleName");
            this.btnProductionLine.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnProductionLine.Anchor")));
            this.btnProductionLine.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnProductionLine.BackgroundImage")));
            this.btnProductionLine.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnProductionLine.Dock")));
            this.btnProductionLine.Enabled = ((bool)(resources.GetObject("btnProductionLine.Enabled")));
            this.btnProductionLine.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnProductionLine.FlatStyle")));
            this.btnProductionLine.Font = ((System.Drawing.Font)(resources.GetObject("btnProductionLine.Font")));
            this.btnProductionLine.Image = ((System.Drawing.Image)(resources.GetObject("btnProductionLine.Image")));
            this.btnProductionLine.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnProductionLine.ImageAlign")));
            this.btnProductionLine.ImageIndex = ((int)(resources.GetObject("btnProductionLine.ImageIndex")));
            this.btnProductionLine.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnProductionLine.ImeMode")));
            this.btnProductionLine.Location = ((System.Drawing.Point)(resources.GetObject("btnProductionLine.Location")));
            this.btnProductionLine.Name = "btnProductionLine";
            this.btnProductionLine.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnProductionLine.RightToLeft")));
            this.btnProductionLine.Size = ((System.Drawing.Size)(resources.GetObject("btnProductionLine.Size")));
            this.btnProductionLine.TabIndex = ((int)(resources.GetObject("btnProductionLine.TabIndex")));
            this.btnProductionLine.Text = resources.GetString("btnProductionLine.Text");
            this.btnProductionLine.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnProductionLine.TextAlign")));
            this.btnProductionLine.Visible = ((bool)(resources.GetObject("btnProductionLine.Visible")));
            this.btnProductionLine.Click += new System.EventHandler(this.btnProductionLine_Click);
            // 
            // lblProductionLine
            // 
            this.lblProductionLine.AccessibleDescription = resources.GetString("lblProductionLine.AccessibleDescription");
            this.lblProductionLine.AccessibleName = resources.GetString("lblProductionLine.AccessibleName");
            this.lblProductionLine.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblProductionLine.Anchor")));
            this.lblProductionLine.AutoSize = ((bool)(resources.GetObject("lblProductionLine.AutoSize")));
            this.lblProductionLine.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblProductionLine.Dock")));
            this.lblProductionLine.Enabled = ((bool)(resources.GetObject("lblProductionLine.Enabled")));
            this.lblProductionLine.Font = ((System.Drawing.Font)(resources.GetObject("lblProductionLine.Font")));
            this.lblProductionLine.Image = ((System.Drawing.Image)(resources.GetObject("lblProductionLine.Image")));
            this.lblProductionLine.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblProductionLine.ImageAlign")));
            this.lblProductionLine.ImageIndex = ((int)(resources.GetObject("lblProductionLine.ImageIndex")));
            this.lblProductionLine.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblProductionLine.ImeMode")));
            this.lblProductionLine.Location = ((System.Drawing.Point)(resources.GetObject("lblProductionLine.Location")));
            this.lblProductionLine.Name = "lblProductionLine";
            this.lblProductionLine.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblProductionLine.RightToLeft")));
            this.lblProductionLine.Size = ((System.Drawing.Size)(resources.GetObject("lblProductionLine.Size")));
            this.lblProductionLine.TabIndex = ((int)(resources.GetObject("lblProductionLine.TabIndex")));
            this.lblProductionLine.Tag = "0";
            this.lblProductionLine.Text = resources.GetString("lblProductionLine.Text");
            this.lblProductionLine.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblProductionLine.TextAlign")));
            this.lblProductionLine.Visible = ((bool)(resources.GetObject("lblProductionLine.Visible")));
            // 
            // cboApproval
            // 
            this.cboApproval.AccessibleDescription = resources.GetString("cboApproval.AccessibleDescription");
            this.cboApproval.AccessibleName = resources.GetString("cboApproval.AccessibleName");
            this.cboApproval.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("cboApproval.Anchor")));
            this.cboApproval.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("cboApproval.BackgroundImage")));
            this.cboApproval.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("cboApproval.Dock")));
            this.cboApproval.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboApproval.Enabled = ((bool)(resources.GetObject("cboApproval.Enabled")));
            this.cboApproval.Font = ((System.Drawing.Font)(resources.GetObject("cboApproval.Font")));
            this.cboApproval.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("cboApproval.ImeMode")));
            this.cboApproval.IntegralHeight = ((bool)(resources.GetObject("cboApproval.IntegralHeight")));
            this.cboApproval.ItemHeight = ((int)(resources.GetObject("cboApproval.ItemHeight")));
            this.cboApproval.Location = ((System.Drawing.Point)(resources.GetObject("cboApproval.Location")));
            this.cboApproval.MaxDropDownItems = ((int)(resources.GetObject("cboApproval.MaxDropDownItems")));
            this.cboApproval.MaxLength = ((int)(resources.GetObject("cboApproval.MaxLength")));
            this.cboApproval.Name = "cboApproval";
            this.cboApproval.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("cboApproval.RightToLeft")));
            this.cboApproval.Size = ((System.Drawing.Size)(resources.GetObject("cboApproval.Size")));
            this.cboApproval.TabIndex = ((int)(resources.GetObject("cboApproval.TabIndex")));
            this.cboApproval.Text = resources.GetString("cboApproval.Text");
            this.cboApproval.Visible = ((bool)(resources.GetObject("cboApproval.Visible")));
            this.cboApproval.SelectedIndexChanged += new System.EventHandler(this.cboRelease_SelectedIndexChanged);
            // 
            // lblStatus
            // 
            this.lblStatus.AccessibleDescription = resources.GetString("lblStatus.AccessibleDescription");
            this.lblStatus.AccessibleName = resources.GetString("lblStatus.AccessibleName");
            this.lblStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblStatus.Anchor")));
            this.lblStatus.AutoSize = ((bool)(resources.GetObject("lblStatus.AutoSize")));
            this.lblStatus.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblStatus.Dock")));
            this.lblStatus.Enabled = ((bool)(resources.GetObject("lblStatus.Enabled")));
            this.lblStatus.Font = ((System.Drawing.Font)(resources.GetObject("lblStatus.Font")));
            this.lblStatus.ForeColor = System.Drawing.Color.Maroon;
            this.lblStatus.Image = ((System.Drawing.Image)(resources.GetObject("lblStatus.Image")));
            this.lblStatus.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblStatus.ImageAlign")));
            this.lblStatus.ImageIndex = ((int)(resources.GetObject("lblStatus.ImageIndex")));
            this.lblStatus.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblStatus.ImeMode")));
            this.lblStatus.Location = ((System.Drawing.Point)(resources.GetObject("lblStatus.Location")));
            this.lblStatus.Name = "lblStatus";
            this.lblStatus.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblStatus.RightToLeft")));
            this.lblStatus.Size = ((System.Drawing.Size)(resources.GetObject("lblStatus.Size")));
            this.lblStatus.TabIndex = ((int)(resources.GetObject("lblStatus.TabIndex")));
            this.lblStatus.Text = resources.GetString("lblStatus.Text");
            this.lblStatus.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblStatus.TextAlign")));
            this.lblStatus.Visible = ((bool)(resources.GetObject("lblStatus.Visible")));
            // 
            // lblRequireInspection
            // 
            this.lblRequireInspection.AccessibleDescription = resources.GetString("lblRequireInspection.AccessibleDescription");
            this.lblRequireInspection.AccessibleName = resources.GetString("lblRequireInspection.AccessibleName");
            this.lblRequireInspection.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblRequireInspection.Anchor")));
            this.lblRequireInspection.AutoSize = ((bool)(resources.GetObject("lblRequireInspection.AutoSize")));
            this.lblRequireInspection.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblRequireInspection.Dock")));
            this.lblRequireInspection.Enabled = ((bool)(resources.GetObject("lblRequireInspection.Enabled")));
            this.lblRequireInspection.Font = ((System.Drawing.Font)(resources.GetObject("lblRequireInspection.Font")));
            this.lblRequireInspection.ForeColor = System.Drawing.Color.Maroon;
            this.lblRequireInspection.Image = ((System.Drawing.Image)(resources.GetObject("lblRequireInspection.Image")));
            this.lblRequireInspection.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblRequireInspection.ImageAlign")));
            this.lblRequireInspection.ImageIndex = ((int)(resources.GetObject("lblRequireInspection.ImageIndex")));
            this.lblRequireInspection.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblRequireInspection.ImeMode")));
            this.lblRequireInspection.Location = ((System.Drawing.Point)(resources.GetObject("lblRequireInspection.Location")));
            this.lblRequireInspection.Name = "lblRequireInspection";
            this.lblRequireInspection.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblRequireInspection.RightToLeft")));
            this.lblRequireInspection.Size = ((System.Drawing.Size)(resources.GetObject("lblRequireInspection.Size")));
            this.lblRequireInspection.TabIndex = ((int)(resources.GetObject("lblRequireInspection.TabIndex")));
            this.lblRequireInspection.Text = resources.GetString("lblRequireInspection.Text");
            this.lblRequireInspection.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblRequireInspection.TextAlign")));
            this.lblRequireInspection.Visible = ((bool)(resources.GetObject("lblRequireInspection.Visible")));
            // 
            // lblQualitiAssured
            // 
            this.lblQualitiAssured.AccessibleDescription = resources.GetString("lblQualitiAssured.AccessibleDescription");
            this.lblQualitiAssured.AccessibleName = resources.GetString("lblQualitiAssured.AccessibleName");
            this.lblQualitiAssured.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblQualitiAssured.Anchor")));
            this.lblQualitiAssured.AutoSize = ((bool)(resources.GetObject("lblQualitiAssured.AutoSize")));
            this.lblQualitiAssured.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblQualitiAssured.Dock")));
            this.lblQualitiAssured.Enabled = ((bool)(resources.GetObject("lblQualitiAssured.Enabled")));
            this.lblQualitiAssured.Font = ((System.Drawing.Font)(resources.GetObject("lblQualitiAssured.Font")));
            this.lblQualitiAssured.ForeColor = System.Drawing.Color.Maroon;
            this.lblQualitiAssured.Image = ((System.Drawing.Image)(resources.GetObject("lblQualitiAssured.Image")));
            this.lblQualitiAssured.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblQualitiAssured.ImageAlign")));
            this.lblQualitiAssured.ImageIndex = ((int)(resources.GetObject("lblQualitiAssured.ImageIndex")));
            this.lblQualitiAssured.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblQualitiAssured.ImeMode")));
            this.lblQualitiAssured.Location = ((System.Drawing.Point)(resources.GetObject("lblQualitiAssured.Location")));
            this.lblQualitiAssured.Name = "lblQualitiAssured";
            this.lblQualitiAssured.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblQualitiAssured.RightToLeft")));
            this.lblQualitiAssured.Size = ((System.Drawing.Size)(resources.GetObject("lblQualitiAssured.Size")));
            this.lblQualitiAssured.TabIndex = ((int)(resources.GetObject("lblQualitiAssured.TabIndex")));
            this.lblQualitiAssured.Text = resources.GetString("lblQualitiAssured.Text");
            this.lblQualitiAssured.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblQualitiAssured.TextAlign")));
            this.lblQualitiAssured.Visible = ((bool)(resources.GetObject("lblQualitiAssured.Visible")));
            // 
            // lblNotPass
            // 
            this.lblNotPass.AccessibleDescription = resources.GetString("lblNotPass.AccessibleDescription");
            this.lblNotPass.AccessibleName = resources.GetString("lblNotPass.AccessibleName");
            this.lblNotPass.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblNotPass.Anchor")));
            this.lblNotPass.AutoSize = ((bool)(resources.GetObject("lblNotPass.AutoSize")));
            this.lblNotPass.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblNotPass.Dock")));
            this.lblNotPass.Enabled = ((bool)(resources.GetObject("lblNotPass.Enabled")));
            this.lblNotPass.Font = ((System.Drawing.Font)(resources.GetObject("lblNotPass.Font")));
            this.lblNotPass.ForeColor = System.Drawing.Color.Maroon;
            this.lblNotPass.Image = ((System.Drawing.Image)(resources.GetObject("lblNotPass.Image")));
            this.lblNotPass.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblNotPass.ImageAlign")));
            this.lblNotPass.ImageIndex = ((int)(resources.GetObject("lblNotPass.ImageIndex")));
            this.lblNotPass.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblNotPass.ImeMode")));
            this.lblNotPass.Location = ((System.Drawing.Point)(resources.GetObject("lblNotPass.Location")));
            this.lblNotPass.Name = "lblNotPass";
            this.lblNotPass.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblNotPass.RightToLeft")));
            this.lblNotPass.Size = ((System.Drawing.Size)(resources.GetObject("lblNotPass.Size")));
            this.lblNotPass.TabIndex = ((int)(resources.GetObject("lblNotPass.TabIndex")));
            this.lblNotPass.Text = resources.GetString("lblNotPass.Text");
            this.lblNotPass.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblNotPass.TextAlign")));
            this.lblNotPass.Visible = ((bool)(resources.GetObject("lblNotPass.Visible")));
            // 
            // lblFromStartDate
            // 
            this.lblFromStartDate.AccessibleDescription = resources.GetString("lblFromStartDate.AccessibleDescription");
            this.lblFromStartDate.AccessibleName = resources.GetString("lblFromStartDate.AccessibleName");
            this.lblFromStartDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblFromStartDate.Anchor")));
            this.lblFromStartDate.AutoSize = ((bool)(resources.GetObject("lblFromStartDate.AutoSize")));
            this.lblFromStartDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblFromStartDate.Dock")));
            this.lblFromStartDate.Enabled = ((bool)(resources.GetObject("lblFromStartDate.Enabled")));
            this.lblFromStartDate.Font = ((System.Drawing.Font)(resources.GetObject("lblFromStartDate.Font")));
            this.lblFromStartDate.ForeColor = System.Drawing.SystemColors.ControlText;
            this.lblFromStartDate.Image = ((System.Drawing.Image)(resources.GetObject("lblFromStartDate.Image")));
            this.lblFromStartDate.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblFromStartDate.ImageAlign")));
            this.lblFromStartDate.ImageIndex = ((int)(resources.GetObject("lblFromStartDate.ImageIndex")));
            this.lblFromStartDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblFromStartDate.ImeMode")));
            this.lblFromStartDate.Location = ((System.Drawing.Point)(resources.GetObject("lblFromStartDate.Location")));
            this.lblFromStartDate.Name = "lblFromStartDate";
            this.lblFromStartDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblFromStartDate.RightToLeft")));
            this.lblFromStartDate.Size = ((System.Drawing.Size)(resources.GetObject("lblFromStartDate.Size")));
            this.lblFromStartDate.TabIndex = ((int)(resources.GetObject("lblFromStartDate.TabIndex")));
            this.lblFromStartDate.Text = resources.GetString("lblFromStartDate.Text");
            this.lblFromStartDate.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblFromStartDate.TextAlign")));
            this.lblFromStartDate.Visible = ((bool)(resources.GetObject("lblFromStartDate.Visible")));
            this.lblFromStartDate.Click += new System.EventHandler(this.lblFromStartDate_Click);
            // 
            // dtmFromStartDate
            // 
            this.dtmFromStartDate.AcceptsEscape = ((bool)(resources.GetObject("dtmFromStartDate.AcceptsEscape")));
            this.dtmFromStartDate.AccessibleDescription = resources.GetString("dtmFromStartDate.AccessibleDescription");
            this.dtmFromStartDate.AccessibleName = resources.GetString("dtmFromStartDate.AccessibleName");
            this.dtmFromStartDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtmFromStartDate.Anchor")));
            this.dtmFromStartDate.AutoSize = ((bool)(resources.GetObject("dtmFromStartDate.AutoSize")));
            this.dtmFromStartDate.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmFromStartDate.BackgroundImage")));
            this.dtmFromStartDate.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dtmFromStartDate.BorderStyle")));
            // 
            // dtmFromStartDate.Calendar
            // 
            this.dtmFromStartDate.Calendar.AccessibleDescription = resources.GetString("dtmFromStartDate.Calendar.AccessibleDescription");
            this.dtmFromStartDate.Calendar.AccessibleName = resources.GetString("dtmFromStartDate.Calendar.AccessibleName");
            this.dtmFromStartDate.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromStartDate.Calendar.AnnuallyBoldedDates")));
            this.dtmFromStartDate.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmFromStartDate.Calendar.BackgroundImage")));
            this.dtmFromStartDate.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromStartDate.Calendar.BoldedDates")));
            this.dtmFromStartDate.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("dtmFromStartDate.Calendar.CalendarDimensions")));
            this.dtmFromStartDate.Calendar.Enabled = ((bool)(resources.GetObject("dtmFromStartDate.Calendar.Enabled")));
            this.dtmFromStartDate.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("dtmFromStartDate.Calendar.FirstDayOfWeek")));
            this.dtmFromStartDate.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("dtmFromStartDate.Calendar.Font")));
            this.dtmFromStartDate.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmFromStartDate.Calendar.ImeMode")));
            this.dtmFromStartDate.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromStartDate.Calendar.MonthlyBoldedDates")));
            this.dtmFromStartDate.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmFromStartDate.Calendar.RightToLeft")));
            this.dtmFromStartDate.Calendar.ShowClearButton = ((bool)(resources.GetObject("dtmFromStartDate.Calendar.ShowClearButton")));
            this.dtmFromStartDate.Calendar.ShowTodayButton = ((bool)(resources.GetObject("dtmFromStartDate.Calendar.ShowTodayButton")));
            this.dtmFromStartDate.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("dtmFromStartDate.Calendar.ShowWeekNumbers")));
            this.dtmFromStartDate.CaseSensitive = ((bool)(resources.GetObject("dtmFromStartDate.CaseSensitive")));
            this.dtmFromStartDate.Culture = ((int)(resources.GetObject("dtmFromStartDate.Culture")));
            this.dtmFromStartDate.CurrentTimeZone = ((bool)(resources.GetObject("dtmFromStartDate.CurrentTimeZone")));
            this.dtmFromStartDate.CustomFormat = resources.GetString("dtmFromStartDate.CustomFormat");
            this.dtmFromStartDate.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("dtmFromStartDate.DaylightTimeAdjustment")));
            this.dtmFromStartDate.DisplayFormat.CustomFormat = resources.GetString("dtmFromStartDate.DisplayFormat.CustomFormat");
            this.dtmFromStartDate.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromStartDate.DisplayFormat.FormatType")));
            this.dtmFromStartDate.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmFromStartDate.DisplayFormat.Inherit")));
            this.dtmFromStartDate.DisplayFormat.NullText = resources.GetString("dtmFromStartDate.DisplayFormat.NullText");
            this.dtmFromStartDate.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("dtmFromStartDate.DisplayFormat.TrimEnd")));
            this.dtmFromStartDate.DisplayFormat.TrimStart = ((bool)(resources.GetObject("dtmFromStartDate.DisplayFormat.TrimStart")));
            this.dtmFromStartDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtmFromStartDate.Dock")));
            this.dtmFromStartDate.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("dtmFromStartDate.DropDownFormAlign")));
            this.dtmFromStartDate.EditFormat.CustomFormat = resources.GetString("dtmFromStartDate.EditFormat.CustomFormat");
            this.dtmFromStartDate.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromStartDate.EditFormat.FormatType")));
            this.dtmFromStartDate.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmFromStartDate.EditFormat.Inherit")));
            this.dtmFromStartDate.EditFormat.NullText = resources.GetString("dtmFromStartDate.EditFormat.NullText");
            this.dtmFromStartDate.EditFormat.TrimEnd = ((bool)(resources.GetObject("dtmFromStartDate.EditFormat.TrimEnd")));
            this.dtmFromStartDate.EditFormat.TrimStart = ((bool)(resources.GetObject("dtmFromStartDate.EditFormat.TrimStart")));
            this.dtmFromStartDate.EditMask = resources.GetString("dtmFromStartDate.EditMask");
            this.dtmFromStartDate.EmptyAsNull = ((bool)(resources.GetObject("dtmFromStartDate.EmptyAsNull")));
            this.dtmFromStartDate.Enabled = ((bool)(resources.GetObject("dtmFromStartDate.Enabled")));
            this.dtmFromStartDate.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("dtmFromStartDate.ErrorInfo.BeepOnError")));
            this.dtmFromStartDate.ErrorInfo.ErrorMessage = resources.GetString("dtmFromStartDate.ErrorInfo.ErrorMessage");
            this.dtmFromStartDate.ErrorInfo.ErrorMessageCaption = resources.GetString("dtmFromStartDate.ErrorInfo.ErrorMessageCaption");
            this.dtmFromStartDate.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("dtmFromStartDate.ErrorInfo.ShowErrorMessage")));
            this.dtmFromStartDate.ErrorInfo.ValueOnError = ((object)(resources.GetObject("dtmFromStartDate.ErrorInfo.ValueOnError")));
            this.dtmFromStartDate.Font = ((System.Drawing.Font)(resources.GetObject("dtmFromStartDate.Font")));
            this.dtmFromStartDate.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromStartDate.FormatType")));
            this.dtmFromStartDate.GapHeight = ((int)(resources.GetObject("dtmFromStartDate.GapHeight")));
            this.dtmFromStartDate.GMTOffset = ((System.TimeSpan)(resources.GetObject("dtmFromStartDate.GMTOffset")));
            this.dtmFromStartDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmFromStartDate.ImeMode")));
            this.dtmFromStartDate.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("dtmFromStartDate.InitialSelection")));
            this.dtmFromStartDate.Location = ((System.Drawing.Point)(resources.GetObject("dtmFromStartDate.Location")));
            this.dtmFromStartDate.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("dtmFromStartDate.MaskInfo.AutoTabWhenFilled")));
            this.dtmFromStartDate.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("dtmFromStartDate.MaskInfo.CaseSensitive")));
            this.dtmFromStartDate.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("dtmFromStartDate.MaskInfo.CopyWithLiterals")));
            this.dtmFromStartDate.MaskInfo.EditMask = resources.GetString("dtmFromStartDate.MaskInfo.EditMask");
            this.dtmFromStartDate.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmFromStartDate.MaskInfo.EmptyAsNull")));
            this.dtmFromStartDate.MaskInfo.ErrorMessage = resources.GetString("dtmFromStartDate.MaskInfo.ErrorMessage");
            this.dtmFromStartDate.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("dtmFromStartDate.MaskInfo.Inherit")));
            this.dtmFromStartDate.MaskInfo.PromptChar = ((char)(resources.GetObject("dtmFromStartDate.MaskInfo.PromptChar")));
            this.dtmFromStartDate.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("dtmFromStartDate.MaskInfo.ShowLiterals")));
            this.dtmFromStartDate.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("dtmFromStartDate.MaskInfo.StoredEmptyChar")));
            this.dtmFromStartDate.MaxLength = ((int)(resources.GetObject("dtmFromStartDate.MaxLength")));
            this.dtmFromStartDate.Name = "dtmFromStartDate";
            this.dtmFromStartDate.NullText = resources.GetString("dtmFromStartDate.NullText");
            this.dtmFromStartDate.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("dtmFromStartDate.ParseInfo.CaseSensitive")));
            this.dtmFromStartDate.ParseInfo.CustomFormat = resources.GetString("dtmFromStartDate.ParseInfo.CustomFormat");
            this.dtmFromStartDate.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("dtmFromStartDate.ParseInfo.DateTimeStyle")));
            this.dtmFromStartDate.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmFromStartDate.ParseInfo.EmptyAsNull")));
            this.dtmFromStartDate.ParseInfo.ErrorMessage = resources.GetString("dtmFromStartDate.ParseInfo.ErrorMessage");
            this.dtmFromStartDate.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromStartDate.ParseInfo.FormatType")));
            this.dtmFromStartDate.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("dtmFromStartDate.ParseInfo.Inherit")));
            this.dtmFromStartDate.ParseInfo.NullText = resources.GetString("dtmFromStartDate.ParseInfo.NullText");
            this.dtmFromStartDate.ParseInfo.TrimEnd = ((bool)(resources.GetObject("dtmFromStartDate.ParseInfo.TrimEnd")));
            this.dtmFromStartDate.ParseInfo.TrimStart = ((bool)(resources.GetObject("dtmFromStartDate.ParseInfo.TrimStart")));
            this.dtmFromStartDate.PasswordChar = ((char)(resources.GetObject("dtmFromStartDate.PasswordChar")));
            this.dtmFromStartDate.PostValidation.CaseSensitive = ((bool)(resources.GetObject("dtmFromStartDate.PostValidation.CaseSensitive")));
            this.dtmFromStartDate.PostValidation.ErrorMessage = resources.GetString("dtmFromStartDate.PostValidation.ErrorMessage");
            this.dtmFromStartDate.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("dtmFromStartDate.PostValidation.Inherit")));
            this.dtmFromStartDate.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("dtmFromStartDate.PostValidation.Validation")));
            this.dtmFromStartDate.PostValidation.Values = ((System.Array)(resources.GetObject("dtmFromStartDate.PostValidation.Values")));
            this.dtmFromStartDate.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("dtmFromStartDate.PostValidation.ValuesExcluded")));
            this.dtmFromStartDate.PreValidation.CaseSensitive = ((bool)(resources.GetObject("dtmFromStartDate.PreValidation.CaseSensitive")));
            this.dtmFromStartDate.PreValidation.ErrorMessage = resources.GetString("dtmFromStartDate.PreValidation.ErrorMessage");
            this.dtmFromStartDate.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("dtmFromStartDate.PreValidation.Inherit")));
            this.dtmFromStartDate.PreValidation.ItemSeparator = resources.GetString("dtmFromStartDate.PreValidation.ItemSeparator");
            this.dtmFromStartDate.PreValidation.PatternString = resources.GetString("dtmFromStartDate.PreValidation.PatternString");
            this.dtmFromStartDate.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("dtmFromStartDate.PreValidation.RegexOptions")));
            this.dtmFromStartDate.PreValidation.TrimEnd = ((bool)(resources.GetObject("dtmFromStartDate.PreValidation.TrimEnd")));
            this.dtmFromStartDate.PreValidation.TrimStart = ((bool)(resources.GetObject("dtmFromStartDate.PreValidation.TrimStart")));
            this.dtmFromStartDate.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("dtmFromStartDate.PreValidation.Validation")));
            this.dtmFromStartDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmFromStartDate.RightToLeft")));
            this.dtmFromStartDate.ShowFocusRectangle = ((bool)(resources.GetObject("dtmFromStartDate.ShowFocusRectangle")));
            this.dtmFromStartDate.Size = ((System.Drawing.Size)(resources.GetObject("dtmFromStartDate.Size")));
            this.dtmFromStartDate.TabIndex = ((int)(resources.GetObject("dtmFromStartDate.TabIndex")));
            this.dtmFromStartDate.Tag = ((object)(resources.GetObject("dtmFromStartDate.Tag")));
            this.dtmFromStartDate.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("dtmFromStartDate.TextAlign")));
            this.dtmFromStartDate.TrimEnd = ((bool)(resources.GetObject("dtmFromStartDate.TrimEnd")));
            this.dtmFromStartDate.TrimStart = ((bool)(resources.GetObject("dtmFromStartDate.TrimStart")));
            this.dtmFromStartDate.UserCultureOverride = ((bool)(resources.GetObject("dtmFromStartDate.UserCultureOverride")));
            this.dtmFromStartDate.Value = ((object)(resources.GetObject("dtmFromStartDate.Value")));
            this.dtmFromStartDate.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("dtmFromStartDate.VerticalAlign")));
            this.dtmFromStartDate.Visible = ((bool)(resources.GetObject("dtmFromStartDate.Visible")));
            this.dtmFromStartDate.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("dtmFromStartDate.VisibleButtons")));
            this.dtmFromStartDate.Enter += new System.EventHandler(this.OnEnterControl);
            this.dtmFromStartDate.Leave += new System.EventHandler(this.OnLeaveControl);
            // 
            // lblToStartDate
            // 
            this.lblToStartDate.AccessibleDescription = resources.GetString("lblToStartDate.AccessibleDescription");
            this.lblToStartDate.AccessibleName = resources.GetString("lblToStartDate.AccessibleName");
            this.lblToStartDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblToStartDate.Anchor")));
            this.lblToStartDate.AutoSize = ((bool)(resources.GetObject("lblToStartDate.AutoSize")));
            this.lblToStartDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblToStartDate.Dock")));
            this.lblToStartDate.Enabled = ((bool)(resources.GetObject("lblToStartDate.Enabled")));
            this.lblToStartDate.Font = ((System.Drawing.Font)(resources.GetObject("lblToStartDate.Font")));
            this.lblToStartDate.Image = ((System.Drawing.Image)(resources.GetObject("lblToStartDate.Image")));
            this.lblToStartDate.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblToStartDate.ImageAlign")));
            this.lblToStartDate.ImageIndex = ((int)(resources.GetObject("lblToStartDate.ImageIndex")));
            this.lblToStartDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblToStartDate.ImeMode")));
            this.lblToStartDate.Location = ((System.Drawing.Point)(resources.GetObject("lblToStartDate.Location")));
            this.lblToStartDate.Name = "lblToStartDate";
            this.lblToStartDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblToStartDate.RightToLeft")));
            this.lblToStartDate.Size = ((System.Drawing.Size)(resources.GetObject("lblToStartDate.Size")));
            this.lblToStartDate.TabIndex = ((int)(resources.GetObject("lblToStartDate.TabIndex")));
            this.lblToStartDate.Text = resources.GetString("lblToStartDate.Text");
            this.lblToStartDate.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblToStartDate.TextAlign")));
            this.lblToStartDate.Visible = ((bool)(resources.GetObject("lblToStartDate.Visible")));
            // 
            // dtmToStartDate
            // 
            this.dtmToStartDate.AcceptsEscape = ((bool)(resources.GetObject("dtmToStartDate.AcceptsEscape")));
            this.dtmToStartDate.AccessibleDescription = resources.GetString("dtmToStartDate.AccessibleDescription");
            this.dtmToStartDate.AccessibleName = resources.GetString("dtmToStartDate.AccessibleName");
            this.dtmToStartDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtmToStartDate.Anchor")));
            this.dtmToStartDate.AutoSize = ((bool)(resources.GetObject("dtmToStartDate.AutoSize")));
            this.dtmToStartDate.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmToStartDate.BackgroundImage")));
            this.dtmToStartDate.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dtmToStartDate.BorderStyle")));
            // 
            // dtmToStartDate.Calendar
            // 
            this.dtmToStartDate.Calendar.AccessibleDescription = resources.GetString("dtmToStartDate.Calendar.AccessibleDescription");
            this.dtmToStartDate.Calendar.AccessibleName = resources.GetString("dtmToStartDate.Calendar.AccessibleName");
            this.dtmToStartDate.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmToStartDate.Calendar.AnnuallyBoldedDates")));
            this.dtmToStartDate.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmToStartDate.Calendar.BackgroundImage")));
            this.dtmToStartDate.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("dtmToStartDate.Calendar.BoldedDates")));
            this.dtmToStartDate.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("dtmToStartDate.Calendar.CalendarDimensions")));
            this.dtmToStartDate.Calendar.Enabled = ((bool)(resources.GetObject("dtmToStartDate.Calendar.Enabled")));
            this.dtmToStartDate.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("dtmToStartDate.Calendar.FirstDayOfWeek")));
            this.dtmToStartDate.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("dtmToStartDate.Calendar.Font")));
            this.dtmToStartDate.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmToStartDate.Calendar.ImeMode")));
            this.dtmToStartDate.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmToStartDate.Calendar.MonthlyBoldedDates")));
            this.dtmToStartDate.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmToStartDate.Calendar.RightToLeft")));
            this.dtmToStartDate.Calendar.ShowClearButton = ((bool)(resources.GetObject("dtmToStartDate.Calendar.ShowClearButton")));
            this.dtmToStartDate.Calendar.ShowTodayButton = ((bool)(resources.GetObject("dtmToStartDate.Calendar.ShowTodayButton")));
            this.dtmToStartDate.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("dtmToStartDate.Calendar.ShowWeekNumbers")));
            this.dtmToStartDate.CaseSensitive = ((bool)(resources.GetObject("dtmToStartDate.CaseSensitive")));
            this.dtmToStartDate.Culture = ((int)(resources.GetObject("dtmToStartDate.Culture")));
            this.dtmToStartDate.CurrentTimeZone = ((bool)(resources.GetObject("dtmToStartDate.CurrentTimeZone")));
            this.dtmToStartDate.CustomFormat = resources.GetString("dtmToStartDate.CustomFormat");
            this.dtmToStartDate.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("dtmToStartDate.DaylightTimeAdjustment")));
            this.dtmToStartDate.DisplayFormat.CustomFormat = resources.GetString("dtmToStartDate.DisplayFormat.CustomFormat");
            this.dtmToStartDate.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToStartDate.DisplayFormat.FormatType")));
            this.dtmToStartDate.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmToStartDate.DisplayFormat.Inherit")));
            this.dtmToStartDate.DisplayFormat.NullText = resources.GetString("dtmToStartDate.DisplayFormat.NullText");
            this.dtmToStartDate.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("dtmToStartDate.DisplayFormat.TrimEnd")));
            this.dtmToStartDate.DisplayFormat.TrimStart = ((bool)(resources.GetObject("dtmToStartDate.DisplayFormat.TrimStart")));
            this.dtmToStartDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtmToStartDate.Dock")));
            this.dtmToStartDate.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("dtmToStartDate.DropDownFormAlign")));
            this.dtmToStartDate.EditFormat.CustomFormat = resources.GetString("dtmToStartDate.EditFormat.CustomFormat");
            this.dtmToStartDate.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToStartDate.EditFormat.FormatType")));
            this.dtmToStartDate.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmToStartDate.EditFormat.Inherit")));
            this.dtmToStartDate.EditFormat.NullText = resources.GetString("dtmToStartDate.EditFormat.NullText");
            this.dtmToStartDate.EditFormat.TrimEnd = ((bool)(resources.GetObject("dtmToStartDate.EditFormat.TrimEnd")));
            this.dtmToStartDate.EditFormat.TrimStart = ((bool)(resources.GetObject("dtmToStartDate.EditFormat.TrimStart")));
            this.dtmToStartDate.EditMask = resources.GetString("dtmToStartDate.EditMask");
            this.dtmToStartDate.EmptyAsNull = ((bool)(resources.GetObject("dtmToStartDate.EmptyAsNull")));
            this.dtmToStartDate.Enabled = ((bool)(resources.GetObject("dtmToStartDate.Enabled")));
            this.dtmToStartDate.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("dtmToStartDate.ErrorInfo.BeepOnError")));
            this.dtmToStartDate.ErrorInfo.ErrorMessage = resources.GetString("dtmToStartDate.ErrorInfo.ErrorMessage");
            this.dtmToStartDate.ErrorInfo.ErrorMessageCaption = resources.GetString("dtmToStartDate.ErrorInfo.ErrorMessageCaption");
            this.dtmToStartDate.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("dtmToStartDate.ErrorInfo.ShowErrorMessage")));
            this.dtmToStartDate.ErrorInfo.ValueOnError = ((object)(resources.GetObject("dtmToStartDate.ErrorInfo.ValueOnError")));
            this.dtmToStartDate.Font = ((System.Drawing.Font)(resources.GetObject("dtmToStartDate.Font")));
            this.dtmToStartDate.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToStartDate.FormatType")));
            this.dtmToStartDate.GapHeight = ((int)(resources.GetObject("dtmToStartDate.GapHeight")));
            this.dtmToStartDate.GMTOffset = ((System.TimeSpan)(resources.GetObject("dtmToStartDate.GMTOffset")));
            this.dtmToStartDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmToStartDate.ImeMode")));
            this.dtmToStartDate.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("dtmToStartDate.InitialSelection")));
            this.dtmToStartDate.Location = ((System.Drawing.Point)(resources.GetObject("dtmToStartDate.Location")));
            this.dtmToStartDate.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("dtmToStartDate.MaskInfo.AutoTabWhenFilled")));
            this.dtmToStartDate.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("dtmToStartDate.MaskInfo.CaseSensitive")));
            this.dtmToStartDate.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("dtmToStartDate.MaskInfo.CopyWithLiterals")));
            this.dtmToStartDate.MaskInfo.EditMask = resources.GetString("dtmToStartDate.MaskInfo.EditMask");
            this.dtmToStartDate.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmToStartDate.MaskInfo.EmptyAsNull")));
            this.dtmToStartDate.MaskInfo.ErrorMessage = resources.GetString("dtmToStartDate.MaskInfo.ErrorMessage");
            this.dtmToStartDate.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("dtmToStartDate.MaskInfo.Inherit")));
            this.dtmToStartDate.MaskInfo.PromptChar = ((char)(resources.GetObject("dtmToStartDate.MaskInfo.PromptChar")));
            this.dtmToStartDate.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("dtmToStartDate.MaskInfo.ShowLiterals")));
            this.dtmToStartDate.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("dtmToStartDate.MaskInfo.StoredEmptyChar")));
            this.dtmToStartDate.MaxLength = ((int)(resources.GetObject("dtmToStartDate.MaxLength")));
            this.dtmToStartDate.Name = "dtmToStartDate";
            this.dtmToStartDate.NullText = resources.GetString("dtmToStartDate.NullText");
            this.dtmToStartDate.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("dtmToStartDate.ParseInfo.CaseSensitive")));
            this.dtmToStartDate.ParseInfo.CustomFormat = resources.GetString("dtmToStartDate.ParseInfo.CustomFormat");
            this.dtmToStartDate.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("dtmToStartDate.ParseInfo.DateTimeStyle")));
            this.dtmToStartDate.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmToStartDate.ParseInfo.EmptyAsNull")));
            this.dtmToStartDate.ParseInfo.ErrorMessage = resources.GetString("dtmToStartDate.ParseInfo.ErrorMessage");
            this.dtmToStartDate.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToStartDate.ParseInfo.FormatType")));
            this.dtmToStartDate.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("dtmToStartDate.ParseInfo.Inherit")));
            this.dtmToStartDate.ParseInfo.NullText = resources.GetString("dtmToStartDate.ParseInfo.NullText");
            this.dtmToStartDate.ParseInfo.TrimEnd = ((bool)(resources.GetObject("dtmToStartDate.ParseInfo.TrimEnd")));
            this.dtmToStartDate.ParseInfo.TrimStart = ((bool)(resources.GetObject("dtmToStartDate.ParseInfo.TrimStart")));
            this.dtmToStartDate.PasswordChar = ((char)(resources.GetObject("dtmToStartDate.PasswordChar")));
            this.dtmToStartDate.PostValidation.CaseSensitive = ((bool)(resources.GetObject("dtmToStartDate.PostValidation.CaseSensitive")));
            this.dtmToStartDate.PostValidation.ErrorMessage = resources.GetString("dtmToStartDate.PostValidation.ErrorMessage");
            this.dtmToStartDate.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("dtmToStartDate.PostValidation.Inherit")));
            this.dtmToStartDate.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("dtmToStartDate.PostValidation.Validation")));
            this.dtmToStartDate.PostValidation.Values = ((System.Array)(resources.GetObject("dtmToStartDate.PostValidation.Values")));
            this.dtmToStartDate.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("dtmToStartDate.PostValidation.ValuesExcluded")));
            this.dtmToStartDate.PreValidation.CaseSensitive = ((bool)(resources.GetObject("dtmToStartDate.PreValidation.CaseSensitive")));
            this.dtmToStartDate.PreValidation.ErrorMessage = resources.GetString("dtmToStartDate.PreValidation.ErrorMessage");
            this.dtmToStartDate.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("dtmToStartDate.PreValidation.Inherit")));
            this.dtmToStartDate.PreValidation.ItemSeparator = resources.GetString("dtmToStartDate.PreValidation.ItemSeparator");
            this.dtmToStartDate.PreValidation.PatternString = resources.GetString("dtmToStartDate.PreValidation.PatternString");
            this.dtmToStartDate.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("dtmToStartDate.PreValidation.RegexOptions")));
            this.dtmToStartDate.PreValidation.TrimEnd = ((bool)(resources.GetObject("dtmToStartDate.PreValidation.TrimEnd")));
            this.dtmToStartDate.PreValidation.TrimStart = ((bool)(resources.GetObject("dtmToStartDate.PreValidation.TrimStart")));
            this.dtmToStartDate.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("dtmToStartDate.PreValidation.Validation")));
            this.dtmToStartDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmToStartDate.RightToLeft")));
            this.dtmToStartDate.ShowFocusRectangle = ((bool)(resources.GetObject("dtmToStartDate.ShowFocusRectangle")));
            this.dtmToStartDate.Size = ((System.Drawing.Size)(resources.GetObject("dtmToStartDate.Size")));
            this.dtmToStartDate.TabIndex = ((int)(resources.GetObject("dtmToStartDate.TabIndex")));
            this.dtmToStartDate.Tag = ((object)(resources.GetObject("dtmToStartDate.Tag")));
            this.dtmToStartDate.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("dtmToStartDate.TextAlign")));
            this.dtmToStartDate.TrimEnd = ((bool)(resources.GetObject("dtmToStartDate.TrimEnd")));
            this.dtmToStartDate.TrimStart = ((bool)(resources.GetObject("dtmToStartDate.TrimStart")));
            this.dtmToStartDate.UserCultureOverride = ((bool)(resources.GetObject("dtmToStartDate.UserCultureOverride")));
            this.dtmToStartDate.Value = ((object)(resources.GetObject("dtmToStartDate.Value")));
            this.dtmToStartDate.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("dtmToStartDate.VerticalAlign")));
            this.dtmToStartDate.Visible = ((bool)(resources.GetObject("dtmToStartDate.Visible")));
            this.dtmToStartDate.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("dtmToStartDate.VisibleButtons")));
            this.dtmToStartDate.Enter += new System.EventHandler(this.OnEnterControl);
            this.dtmToStartDate.Leave += new System.EventHandler(this.dtmToStartDate_Leave);
            // 
            // txtPartNumber
            // 
            this.txtPartNumber.AccessibleDescription = resources.GetString("txtPartNumber.AccessibleDescription");
            this.txtPartNumber.AccessibleName = resources.GetString("txtPartNumber.AccessibleName");
            this.txtPartNumber.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtPartNumber.Anchor")));
            this.txtPartNumber.AutoSize = ((bool)(resources.GetObject("txtPartNumber.AutoSize")));
            this.txtPartNumber.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtPartNumber.BackgroundImage")));
            this.txtPartNumber.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtPartNumber.Dock")));
            this.txtPartNumber.Enabled = ((bool)(resources.GetObject("txtPartNumber.Enabled")));
            this.txtPartNumber.Font = ((System.Drawing.Font)(resources.GetObject("txtPartNumber.Font")));
            this.txtPartNumber.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtPartNumber.ImeMode")));
            this.txtPartNumber.Location = ((System.Drawing.Point)(resources.GetObject("txtPartNumber.Location")));
            this.txtPartNumber.MaxLength = ((int)(resources.GetObject("txtPartNumber.MaxLength")));
            this.txtPartNumber.Multiline = ((bool)(resources.GetObject("txtPartNumber.Multiline")));
            this.txtPartNumber.Name = "txtPartNumber";
            this.txtPartNumber.PasswordChar = ((char)(resources.GetObject("txtPartNumber.PasswordChar")));
            this.txtPartNumber.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtPartNumber.RightToLeft")));
            this.txtPartNumber.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtPartNumber.ScrollBars")));
            this.txtPartNumber.Size = ((System.Drawing.Size)(resources.GetObject("txtPartNumber.Size")));
            this.txtPartNumber.TabIndex = ((int)(resources.GetObject("txtPartNumber.TabIndex")));
            this.txtPartNumber.Tag = "0";
            this.txtPartNumber.Text = resources.GetString("txtPartNumber.Text");
            this.txtPartNumber.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtPartNumber.TextAlign")));
            this.txtPartNumber.Visible = ((bool)(resources.GetObject("txtPartNumber.Visible")));
            this.txtPartNumber.WordWrap = ((bool)(resources.GetObject("txtPartNumber.WordWrap")));
            this.txtPartNumber.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtPartNumber_KeyDown);
            this.txtPartNumber.Validating += new System.ComponentModel.CancelEventHandler(this.txtPartNumber_Validating);
            // 
            // btnPartNumber
            // 
            this.btnPartNumber.AccessibleDescription = resources.GetString("btnPartNumber.AccessibleDescription");
            this.btnPartNumber.AccessibleName = resources.GetString("btnPartNumber.AccessibleName");
            this.btnPartNumber.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnPartNumber.Anchor")));
            this.btnPartNumber.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnPartNumber.BackgroundImage")));
            this.btnPartNumber.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnPartNumber.Dock")));
            this.btnPartNumber.Enabled = ((bool)(resources.GetObject("btnPartNumber.Enabled")));
            this.btnPartNumber.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnPartNumber.FlatStyle")));
            this.btnPartNumber.Font = ((System.Drawing.Font)(resources.GetObject("btnPartNumber.Font")));
            this.btnPartNumber.Image = ((System.Drawing.Image)(resources.GetObject("btnPartNumber.Image")));
            this.btnPartNumber.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnPartNumber.ImageAlign")));
            this.btnPartNumber.ImageIndex = ((int)(resources.GetObject("btnPartNumber.ImageIndex")));
            this.btnPartNumber.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnPartNumber.ImeMode")));
            this.btnPartNumber.Location = ((System.Drawing.Point)(resources.GetObject("btnPartNumber.Location")));
            this.btnPartNumber.Name = "btnPartNumber";
            this.btnPartNumber.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnPartNumber.RightToLeft")));
            this.btnPartNumber.Size = ((System.Drawing.Size)(resources.GetObject("btnPartNumber.Size")));
            this.btnPartNumber.TabIndex = ((int)(resources.GetObject("btnPartNumber.TabIndex")));
            this.btnPartNumber.Text = resources.GetString("btnPartNumber.Text");
            this.btnPartNumber.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnPartNumber.TextAlign")));
            this.btnPartNumber.Visible = ((bool)(resources.GetObject("btnPartNumber.Visible")));
            this.btnPartNumber.Click += new System.EventHandler(this.btnPartNumber_Click);
            // 
            // lblPartNumber
            // 
            this.lblPartNumber.AccessibleDescription = resources.GetString("lblPartNumber.AccessibleDescription");
            this.lblPartNumber.AccessibleName = resources.GetString("lblPartNumber.AccessibleName");
            this.lblPartNumber.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblPartNumber.Anchor")));
            this.lblPartNumber.AutoSize = ((bool)(resources.GetObject("lblPartNumber.AutoSize")));
            this.lblPartNumber.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblPartNumber.Dock")));
            this.lblPartNumber.Enabled = ((bool)(resources.GetObject("lblPartNumber.Enabled")));
            this.lblPartNumber.Font = ((System.Drawing.Font)(resources.GetObject("lblPartNumber.Font")));
            this.lblPartNumber.Image = ((System.Drawing.Image)(resources.GetObject("lblPartNumber.Image")));
            this.lblPartNumber.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblPartNumber.ImageAlign")));
            this.lblPartNumber.ImageIndex = ((int)(resources.GetObject("lblPartNumber.ImageIndex")));
            this.lblPartNumber.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblPartNumber.ImeMode")));
            this.lblPartNumber.Location = ((System.Drawing.Point)(resources.GetObject("lblPartNumber.Location")));
            this.lblPartNumber.Name = "lblPartNumber";
            this.lblPartNumber.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblPartNumber.RightToLeft")));
            this.lblPartNumber.Size = ((System.Drawing.Size)(resources.GetObject("lblPartNumber.Size")));
            this.lblPartNumber.TabIndex = ((int)(resources.GetObject("lblPartNumber.TabIndex")));
            this.lblPartNumber.Tag = "0";
            this.lblPartNumber.Text = resources.GetString("lblPartNumber.Text");
            this.lblPartNumber.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblPartNumber.TextAlign")));
            this.lblPartNumber.Visible = ((bool)(resources.GetObject("lblPartNumber.Visible")));
            // 
            // btnUnRelease
            // 
            this.btnUnRelease.AccessibleDescription = resources.GetString("btnUnRelease.AccessibleDescription");
            this.btnUnRelease.AccessibleName = resources.GetString("btnUnRelease.AccessibleName");
            this.btnUnRelease.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnUnRelease.Anchor")));
            this.btnUnRelease.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnUnRelease.BackgroundImage")));
            this.btnUnRelease.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnUnRelease.Dock")));
            this.btnUnRelease.Enabled = ((bool)(resources.GetObject("btnUnRelease.Enabled")));
            this.btnUnRelease.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnUnRelease.FlatStyle")));
            this.btnUnRelease.Font = ((System.Drawing.Font)(resources.GetObject("btnUnRelease.Font")));
            this.btnUnRelease.Image = ((System.Drawing.Image)(resources.GetObject("btnUnRelease.Image")));
            this.btnUnRelease.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnUnRelease.ImageAlign")));
            this.btnUnRelease.ImageIndex = ((int)(resources.GetObject("btnUnRelease.ImageIndex")));
            this.btnUnRelease.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnUnRelease.ImeMode")));
            this.btnUnRelease.Location = ((System.Drawing.Point)(resources.GetObject("btnUnRelease.Location")));
            this.btnUnRelease.Name = "btnUnRelease";
            this.btnUnRelease.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnUnRelease.RightToLeft")));
            this.btnUnRelease.Size = ((System.Drawing.Size)(resources.GetObject("btnUnRelease.Size")));
            this.btnUnRelease.TabIndex = ((int)(resources.GetObject("btnUnRelease.TabIndex")));
            this.btnUnRelease.Text = resources.GetString("btnUnRelease.Text");
            this.btnUnRelease.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnUnRelease.TextAlign")));
            this.btnUnRelease.Visible = ((bool)(resources.GetObject("btnUnRelease.Visible")));
            this.btnUnRelease.Click += new System.EventHandler(this.btnUnRelease_Click);
            // 
            // gridData
            // 
            this.gridData.AccessibleDescription = resources.GetString("gridData.AccessibleDescription");
            this.gridData.AccessibleName = resources.GetString("gridData.AccessibleName");
            this.gridData.AllowAddNew = ((bool)(resources.GetObject("gridData.AllowAddNew")));
            this.gridData.AllowArrows = ((bool)(resources.GetObject("gridData.AllowArrows")));
            this.gridData.AllowColMove = ((bool)(resources.GetObject("gridData.AllowColMove")));
            this.gridData.AllowColSelect = ((bool)(resources.GetObject("gridData.AllowColSelect")));
            this.gridData.AllowDelete = ((bool)(resources.GetObject("gridData.AllowDelete")));
            this.gridData.AllowDrag = ((bool)(resources.GetObject("gridData.AllowDrag")));
            this.gridData.AllowFilter = ((bool)(resources.GetObject("gridData.AllowFilter")));
            this.gridData.AllowHorizontalSplit = ((bool)(resources.GetObject("gridData.AllowHorizontalSplit")));
            this.gridData.AllowRowSelect = ((bool)(resources.GetObject("gridData.AllowRowSelect")));
            this.gridData.AllowSort = ((bool)(resources.GetObject("gridData.AllowSort")));
            this.gridData.AllowUpdate = ((bool)(resources.GetObject("gridData.AllowUpdate")));
            this.gridData.AllowUpdateOnBlur = ((bool)(resources.GetObject("gridData.AllowUpdateOnBlur")));
            this.gridData.AllowVerticalSplit = ((bool)(resources.GetObject("gridData.AllowVerticalSplit")));
            this.gridData.AlternatingRows = ((bool)(resources.GetObject("gridData.AlternatingRows")));
            this.gridData.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("gridData.Anchor")));
            this.gridData.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("gridData.BackgroundImage")));
            this.gridData.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("gridData.BorderStyle")));
            this.gridData.Caption = resources.GetString("gridData.Caption");
            this.gridData.CaptionHeight = ((int)(resources.GetObject("gridData.CaptionHeight")));
            this.gridData.CellTipsDelay = ((int)(resources.GetObject("gridData.CellTipsDelay")));
            this.gridData.CellTipsWidth = ((int)(resources.GetObject("gridData.CellTipsWidth")));
            this.gridData.ChildGrid = ((C1.Win.C1TrueDBGrid.C1TrueDBGrid)(resources.GetObject("gridData.ChildGrid")));
            this.gridData.CollapseColor = ((System.Drawing.Color)(resources.GetObject("gridData.CollapseColor")));
            this.gridData.ColumnFooters = ((bool)(resources.GetObject("gridData.ColumnFooters")));
            this.gridData.ColumnHeaders = ((bool)(resources.GetObject("gridData.ColumnHeaders")));
            this.gridData.DefColWidth = ((int)(resources.GetObject("gridData.DefColWidth")));
            this.gridData.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("gridData.Dock")));
            this.gridData.EditDropDown = ((bool)(resources.GetObject("gridData.EditDropDown")));
            this.gridData.EmptyRows = ((bool)(resources.GetObject("gridData.EmptyRows")));
            this.gridData.Enabled = ((bool)(resources.GetObject("gridData.Enabled")));
            this.gridData.ExpandColor = ((System.Drawing.Color)(resources.GetObject("gridData.ExpandColor")));
            this.gridData.ExposeCellMode = ((C1.Win.C1TrueDBGrid.ExposeCellModeEnum)(resources.GetObject("gridData.ExposeCellMode")));
            this.gridData.ExtendRightColumn = ((bool)(resources.GetObject("gridData.ExtendRightColumn")));
            this.gridData.FetchRowStyles = ((bool)(resources.GetObject("gridData.FetchRowStyles")));
            this.gridData.FilterBar = ((bool)(resources.GetObject("gridData.FilterBar")));
            this.gridData.FlatStyle = ((C1.Win.C1TrueDBGrid.FlatModeEnum)(resources.GetObject("gridData.FlatStyle")));
            this.gridData.Font = ((System.Drawing.Font)(resources.GetObject("gridData.Font")));
            this.gridData.GroupByAreaVisible = ((bool)(resources.GetObject("gridData.GroupByAreaVisible")));
            this.gridData.GroupByCaption = resources.GetString("gridData.GroupByCaption");
            this.gridData.Images.Add(((System.Drawing.Image)(resources.GetObject("resource"))));
            this.gridData.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("gridData.ImeMode")));
            this.gridData.LinesPerRow = ((int)(resources.GetObject("gridData.LinesPerRow")));
            this.gridData.Location = ((System.Drawing.Point)(resources.GetObject("gridData.Location")));
            this.gridData.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.DottedCellBorder;
            this.gridData.Name = "gridData";
            this.gridData.PictureAddnewRow = ((System.Drawing.Image)(resources.GetObject("gridData.PictureAddnewRow")));
            this.gridData.PictureCurrentRow = ((System.Drawing.Image)(resources.GetObject("gridData.PictureCurrentRow")));
            this.gridData.PictureFilterBar = ((System.Drawing.Image)(resources.GetObject("gridData.PictureFilterBar")));
            this.gridData.PictureFooterRow = ((System.Drawing.Image)(resources.GetObject("gridData.PictureFooterRow")));
            this.gridData.PictureHeaderRow = ((System.Drawing.Image)(resources.GetObject("gridData.PictureHeaderRow")));
            this.gridData.PictureModifiedRow = ((System.Drawing.Image)(resources.GetObject("gridData.PictureModifiedRow")));
            this.gridData.PictureStandardRow = ((System.Drawing.Image)(resources.GetObject("gridData.PictureStandardRow")));
            this.gridData.PreviewInfo.AllowSizing = ((bool)(resources.GetObject("gridData.PreviewInfo.AllowSizing")));
            this.gridData.PreviewInfo.Caption = resources.GetString("gridData.PreviewInfo.Caption");
            this.gridData.PreviewInfo.Location = ((System.Drawing.Point)(resources.GetObject("gridData.PreviewInfo.Location")));
            this.gridData.PreviewInfo.Size = ((System.Drawing.Size)(resources.GetObject("gridData.PreviewInfo.Size")));
            this.gridData.PreviewInfo.ToolBars = ((bool)(resources.GetObject("gridData.PreviewInfo.ToolBars")));
            this.gridData.PreviewInfo.UIStrings.Content = ((string[])(resources.GetObject("gridData.PreviewInfo.UIStrings.Content")));
            this.gridData.PreviewInfo.ZoomFactor = ((System.Double)(resources.GetObject("gridData.PreviewInfo.ZoomFactor")));
            this.gridData.PrintInfo.MaxRowHeight = ((int)(resources.GetObject("gridData.PrintInfo.MaxRowHeight")));
            this.gridData.PrintInfo.OwnerDrawPageFooter = ((bool)(resources.GetObject("gridData.PrintInfo.OwnerDrawPageFooter")));
            this.gridData.PrintInfo.OwnerDrawPageHeader = ((bool)(resources.GetObject("gridData.PrintInfo.OwnerDrawPageHeader")));
            this.gridData.PrintInfo.PageFooter = resources.GetString("gridData.PrintInfo.PageFooter");
            this.gridData.PrintInfo.PageFooterHeight = ((int)(resources.GetObject("gridData.PrintInfo.PageFooterHeight")));
            this.gridData.PrintInfo.PageHeader = resources.GetString("gridData.PrintInfo.PageHeader");
            this.gridData.PrintInfo.PageHeaderHeight = ((int)(resources.GetObject("gridData.PrintInfo.PageHeaderHeight")));
            this.gridData.PrintInfo.PrintHorizontalSplits = ((bool)(resources.GetObject("gridData.PrintInfo.PrintHorizontalSplits")));
            this.gridData.PrintInfo.ProgressCaption = resources.GetString("gridData.PrintInfo.ProgressCaption");
            this.gridData.PrintInfo.RepeatColumnFooters = ((bool)(resources.GetObject("gridData.PrintInfo.RepeatColumnFooters")));
            this.gridData.PrintInfo.RepeatColumnHeaders = ((bool)(resources.GetObject("gridData.PrintInfo.RepeatColumnHeaders")));
            this.gridData.PrintInfo.RepeatGridHeader = ((bool)(resources.GetObject("gridData.PrintInfo.RepeatGridHeader")));
            this.gridData.PrintInfo.RepeatSplitHeaders = ((bool)(resources.GetObject("gridData.PrintInfo.RepeatSplitHeaders")));
            this.gridData.PrintInfo.ShowOptionsDialog = ((bool)(resources.GetObject("gridData.PrintInfo.ShowOptionsDialog")));
            this.gridData.PrintInfo.ShowProgressForm = ((bool)(resources.GetObject("gridData.PrintInfo.ShowProgressForm")));
            this.gridData.PrintInfo.ShowSelection = ((bool)(resources.GetObject("gridData.PrintInfo.ShowSelection")));
            this.gridData.PrintInfo.UseGridColors = ((bool)(resources.GetObject("gridData.PrintInfo.UseGridColors")));
            this.gridData.RecordSelectors = ((bool)(resources.GetObject("gridData.RecordSelectors")));
            this.gridData.RecordSelectorWidth = ((int)(resources.GetObject("gridData.RecordSelectorWidth")));
            this.gridData.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("gridData.RightToLeft")));
            this.gridData.RowDivider.Color = ((System.Drawing.Color)(resources.GetObject("resource.Color")));
            this.gridData.RowDivider.Style = ((C1.Win.C1TrueDBGrid.LineStyleEnum)(resources.GetObject("resource.Style")));
            this.gridData.RowHeight = ((int)(resources.GetObject("gridData.RowHeight")));
            this.gridData.RowSubDividerColor = ((System.Drawing.Color)(resources.GetObject("gridData.RowSubDividerColor")));
            this.gridData.ScrollTips = ((bool)(resources.GetObject("gridData.ScrollTips")));
            this.gridData.ScrollTrack = ((bool)(resources.GetObject("gridData.ScrollTrack")));
            this.gridData.Size = ((System.Drawing.Size)(resources.GetObject("gridData.Size")));
            this.gridData.SpringMode = ((bool)(resources.GetObject("gridData.SpringMode")));
            this.gridData.TabAcrossSplits = ((bool)(resources.GetObject("gridData.TabAcrossSplits")));
            this.gridData.TabIndex = ((int)(resources.GetObject("gridData.TabIndex")));
            this.gridData.Text = resources.GetString("gridData.Text");
            this.gridData.ViewCaptionWidth = ((int)(resources.GetObject("gridData.ViewCaptionWidth")));
            this.gridData.ViewColumnWidth = ((int)(resources.GetObject("gridData.ViewColumnWidth")));
            this.gridData.Visible = ((bool)(resources.GetObject("gridData.Visible")));
            this.gridData.WrapCellPointer = ((bool)(resources.GetObject("gridData.WrapCellPointer")));
            this.gridData.PropBag = resources.GetString("gridData.PropBag");
            // 
            // ApprovalWorkOrderCompletion
            // 
            this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
            this.AccessibleName = resources.GetString("$this.AccessibleName");
            this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
            this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
            this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
            this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
            this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
            this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
            this.Controls.Add(this.gridData);
            this.Controls.Add(this.txtPartNumber);
            this.Controls.Add(this.txtProductionLine);
            this.Controls.Add(this.txtFGoodsCode);
            this.Controls.Add(this.txtWorkOrder);
            this.Controls.Add(this.btnPartNumber);
            this.Controls.Add(this.lblPartNumber);
            this.Controls.Add(this.lblNotPass);
            this.Controls.Add(this.lblQualitiAssured);
            this.Controls.Add(this.lblRequireInspection);
            this.Controls.Add(this.lblStatus);
            this.Controls.Add(this.cboApproval);
            this.Controls.Add(this.btnProductionLine);
            this.Controls.Add(this.lblProductionLine);
            this.Controls.Add(this.dtmToStartDate);
            this.Controls.Add(this.dtmFromStartDate);
            this.Controls.Add(this.cboCCN);
            this.Controls.Add(this.btnFGoodsCode);
            this.Controls.Add(this.lblToStartDate);
            this.Controls.Add(this.btnSearch);
            this.Controls.Add(this.btnClose);
            this.Controls.Add(this.btnHelp);
            this.Controls.Add(this.btnRelease);
            this.Controls.Add(this.chkSelectAll);
            this.Controls.Add(this.lblCCN);
            this.Controls.Add(this.btnWorkOrder);
            this.Controls.Add(this.lblFGoodsCode);
            this.Controls.Add(this.lblFromStartDate);
            this.Controls.Add(this.lblWO);
            this.Controls.Add(this.btnUnRelease);
            this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
            this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
            this.KeyPreview = true;
            this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
            this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
            this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
            this.Name = "ApprovalWorkOrderCompletion";
            this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
            this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
            this.Text = resources.GetString("$this.Text");
            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ReleaseWorkOrder_KeyDown);
            this.Closing += new System.ComponentModel.CancelEventHandler(this.ReleaseWorkOrder_Closing);
            this.Load += new System.EventHandler(this.ApprovalWorkOrderCompletion_Load);
            ((System.ComponentModel.ISupportInitialize)(this.cboCCN)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.dtmFromStartDate)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.dtmToStartDate)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.gridData)).EndInit();
            this.ResumeLayout(false);

        }
        public ApprovalWorkOrderCompletion()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose(disposing);
        }

        #endregion

        #region Private method
        /// <summary>
        /// InitVariable()
        /// </summary>
        /// <Author>TraDa</Author>
        /// <Date>Thursday, June 2, 2005</Date>
        private void InitVariable()
        {
            const string METHOD_NAME = THIS + ".InitVariable()";
            try
            {

                // Load combo box
                UtilsBO boUtil = new UtilsBO();
                DataSet dstCCN = boUtil.ListCCN();
                cboCCN.DataSource = dstCCN.Tables[MST_CCNTable.TABLE_NAME];
                cboCCN.DisplayMember = MST_CCNTable.CODE_FLD;
                cboCCN.ValueMember = MST_CCNTable.CCNID_FLD;
                FormControlComponents.PutDataIntoC1ComboBox(cboCCN, dstCCN.Tables[MST_CCNTable.TABLE_NAME], MST_CCNTable.CODE_FLD, MST_CCNTable.CCNID_FLD, MST_CCNTable.TABLE_NAME);
                if (SystemProperty.CCNID != 0)
                {
                    cboCCN.SelectedValue = SystemProperty.CCNID;
                }
                dtmFromStartDate.CustomFormat = Constants.DATETIME_FORMAT_HOUR;
                dtmToStartDate.CustomFormat = Constants.DATETIME_FORMAT_HOUR;
                //chkSelectAll.Visible = false;
            }
            catch (PCSException ex)
            {
                throw new PCSException(ex.mCode, METHOD_NAME, ex);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message, ex);
            }
        }

        #endregion

        #region form event
        /// <summary>
        /// ApprovalWorkOrderCompletion_Load()
        /// </summary>
        /// <Author>CanhNv</Author>
        /// <Date>Thursday, September 20, 2007</Date>
        private void ApprovalWorkOrderCompletion_Load(object sender, EventArgs e)
        {
            const string METHOD_NAME = THIS + ".ApprovalWorkOrderCompletion_Load()";
            try
            {
                #region Set authorization for user
                Security objSecurity = new Security();
                this.Name = THIS;
                if (objSecurity.SetRightForUserOnForm(this, SystemProperty.UserName) == 0)
                {
                    this.Close();
                    // You don't have the right to view this item
                    PCSMessageBox.Show(ErrorCode.MESSAGE_YOU_HAVE_NO_RIGHT_TO_VIEW);
                    return;
                }
                #endregion

                //Set format for DateTime Controls
                dtmFromStartDate.CustomFormat = Constants.DATETIME_FORMAT_HOUR;
                dtmToStartDate.CustomFormat = Constants.DATETIME_FORMAT_HOUR;
                // StoreGridLayout
                dtbGridLayOut = FormControlComponents.StoreGridLayout(gridData);
                //InitVariable
                InitVariable();

                //Init Combo Box
                cboApproval.Items.Clear();
                cboApproval.Items.Add(lblRequireInspection.Text);
                cboApproval.Items.Add(lblNotPass.Text);
                cboApproval.Items.Add(lblQualitiAssured.Text);
                cboApproval.SelectedIndex = 0;

                CreateDataSet();

                lblRequireInspection.Visible = false;
                lblQualitiAssured.Visible = false;
                lblNotPass.Visible = false;
            }
            catch (PCSException ex)
            {
                // Displays the error message if throwed from PCSException.
                PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
            catch (Exception ex)
            {
                // Displays the error message if throwed from system.
                PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
        }

        #endregion

        private void btnSearch_Click(object sender, EventArgs e)
        {
            const string METHOD_NAME = THIS + ".btnSearch_Click()";
            try
            {
                if (cboApproval.SelectedIndex == -1)
                {
                    PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Warning);
                    cboApproval.Focus();
                    return;
                }

                if (!IsValidateToDate())
                {
                    PCSMessageBox.Show(ErrorCode.MESSAGE_RELEASE_WO_VALIDATETODATE, MessageBoxIcon.Error);
                    dtmToStartDate.Focus();
                    return;
                }
                else
                {

                    //Bind data to grid
                    BindDataToGrid();
                    if (blnSearchResult)
                    {
                        PCSMessageBox.Show(ErrorCode.MESSAGE_WCDISPATCH_FOUND_NOROW, MessageBoxIcon.Information);
                    }
                }
            }
            catch (PCSException ex)
            {
                // Displays the error message if throwed from PCSException.
                PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
            catch (Exception ex)
            {
                // Displays the error message if throwed from system.
                PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
        }
        /// <summary>
        /// Bind data to Grid
        ///  </summary>
        ///  <author>TraDa</author>
        /// <date>Monday, June 6 2005</date>
        private void BindDataToGrid()
        {
            int pintCCN;
            int intWOMasterID = 0;
            DateTime pdtmFromStartDate = new DateTime();
            DateTime pdtmToStartDate = new DateTime();

            pintCCN = int.Parse(cboCCN.SelectedValue.ToString());

            int intQAStatus = cboApproval.SelectedIndex + 1;
            if (txtWorkOrder.Text != string.Empty)
                intWOMasterID = int.Parse(txtWorkOrder.Tag.ToString());

            int intProLineID = 0;
            if (txtProductionLine.Text != string.Empty)
                intProLineID = int.Parse(txtProductionLine.Tag.ToString());

            string strFGoodsCode = txtFGoodsCode.Text.ToString();

            int intProductID = 0;
            if (txtPartNumber.Text != string.Empty)
                intProductID = int.Parse(txtPartNumber.Tag.ToString());

            if (dtmFromStartDate.Value.ToString() != string.Empty)
                pdtmFromStartDate = DateTime.Parse(dtmFromStartDate.Value.ToString());
            if (dtmToStartDate.Value.ToString() != string.Empty)
                pdtmToStartDate = DateTime.Parse(dtmToStartDate.Value.ToString());

            ApprovalWorkOrderCompletionBO boWOCompletion = new ApprovalWorkOrderCompletionBO();
            dstApprovalWOCompletion = boWOCompletion.SearchApprovalWOCompletion(pintCCN, intQAStatus, intWOMasterID, intProLineID,
                pdtmFromStartDate, pdtmToStartDate, strFGoodsCode, intProductID);

            gridData.DataSource = dstApprovalWOCompletion.Tables[0];
            FormControlComponents.RestoreGridLayout(gridData, dtbGridLayOut);
            gridData.Splits[0].DisplayColumns[SELECT].DataColumn.ValueItems.Presentation = PresentationEnum.CheckBox;
            gridData.Splits[0].DisplayColumns[SELECT].Style.HorizontalAlignment = AlignHorzEnum.Center;
            gridData.Splits[0].DisplayColumns[WONO].Locked = true;
            gridData.Splits[0].DisplayColumns[PRO_WorkOrderDetailTable.WORKORDERDETAILID_FLD].Visible = false;
            gridData.Splits[0].DisplayColumns[PRO_WorkOrderCompletionTable.QASTATUS_FLD].Visible = false;

            gridData.Splits[0].DisplayColumns[PRO_WorkOrderCompletionTable.CCNID_FLD].Visible = false;
            gridData.Splits[0].DisplayColumns[PRO_WorkOrderCompletionTable.MASTERLOCATIONID_FLD].Visible = false;
            gridData.Splits[0].DisplayColumns[PRO_WorkOrderCompletionTable.WORKORDERMASTERID_FLD].Visible = false;
            gridData.Splits[0].DisplayColumns[PRO_WorkOrderCompletionTable.PRODUCTID_FLD].Visible = false;

            gridData.Splits[0].DisplayColumns[PRO_WorkOrderDetailTable.LINE_FLD].Locked = true;
            gridData.Splits[0].DisplayColumns[PARTNUMBER].Locked = true;
            gridData.Splits[0].DisplayColumns[PARTNAME].Locked = true;
            gridData.Splits[0].DisplayColumns[MODEL].Locked = true;
            gridData.Splits[0].DisplayColumns[UM].Locked = true;
            gridData.Splits[0].DisplayColumns[PRO_WorkOrderCompletionTable.COMPLETEDQUANTITY_FLD].Locked = true;
            gridData.Splits[0].DisplayColumns[PRO_WorkOrderCompletionTable.NGQUANTITY_FLD].Locked = false;
            gridData.Columns[PRO_WorkOrderDetailTable.STARTDATE_FLD].NumberFormat = Constants.DATETIME_FORMAT_HOUR;
            gridData.Columns[PRO_WorkOrderDetailTable.DUEDATE_FLD].NumberFormat = Constants.DATETIME_FORMAT_HOUR;
            gridData.Columns[PRO_WorkOrderCompletionTable.COMPLETEDQUANTITY_FLD].NumberFormat = Constants.DECIMAL_NUMBERFORMAT;
            gridData.Columns[PRO_WorkOrderCompletionTable.NGQUANTITY_FLD].NumberFormat = Constants.DECIMAL_NUMBERFORMAT;

            //Set new status for chkSelectAll

            if (gridData.RowCount == 0)
            {
                chkSelectAll.Checked = false;
            }
            else
            {
                for (int i = 0; i < gridData.RowCount; i++)
                {
                    if (gridData[i, SELECT].ToString().Trim() != TRUE)
                    {
                        chkSelectAll.Checked = false;
                        return;
                    }
                }
                chkSelectAll.Checked = true;
            }
        }
        /// <summary>
        /// CreateDataSet
        /// </summary>
        /// <author>Trada</author>
        /// <Date>Thursday, October 13 2005</Date>
        private void CreateDataSet()
        {
            const string PRODUCTION_LINE = "ProductionLine";
            dstGridData = new DataSet();
            dstGridData.Tables.Add(PRO_WorkOrderCompletionTable.TABLE_NAME);
            dstGridData.Tables[PRO_WorkOrderCompletionTable.TABLE_NAME].Columns.Add(SELECT);
            dstGridData.Tables[PRO_WorkOrderCompletionTable.TABLE_NAME].Columns.Add(SO_SaleOrderDetailTable.FGOODSCODE_FLD);
            dstGridData.Tables[PRO_WorkOrderCompletionTable.TABLE_NAME].Columns.Add(PRODUCTION_LINE);
            dstGridData.Tables[PRO_WorkOrderCompletionTable.TABLE_NAME].Columns.Add(PRO_WorkOrderMasterTable.WORKORDERNO_FLD);
            dstGridData.Tables[PRO_WorkOrderCompletionTable.TABLE_NAME].Columns.Add(PRO_WorkOrderDetailTable.LINE_FLD);
            dstGridData.Tables[PRO_WorkOrderCompletionTable.TABLE_NAME].Columns.Add(PARTNUMBER);
            dstGridData.Tables[PRO_WorkOrderCompletionTable.TABLE_NAME].Columns.Add(PARTNAME);
            dstGridData.Tables[PRO_WorkOrderCompletionTable.TABLE_NAME].Columns.Add(MODEL);
            dstGridData.Tables[PRO_WorkOrderCompletionTable.TABLE_NAME].Columns.Add(UM);
            dstGridData.Tables[PRO_WorkOrderCompletionTable.TABLE_NAME].Columns.Add(PRO_WorkOrderCompletionTable.COMPLETEDQUANTITY_FLD);
            dstGridData.Tables[PRO_WorkOrderCompletionTable.TABLE_NAME].Columns.Add(PRO_WorkOrderCompletionTable.NGQUANTITY_FLD);
            dstGridData.Tables[PRO_WorkOrderCompletionTable.TABLE_NAME].Columns.Add(PRO_WorkOrderDetailTable.STARTDATE_FLD);
            dstGridData.Tables[PRO_WorkOrderCompletionTable.TABLE_NAME].Columns.Add(PRO_WorkOrderDetailTable.DUEDATE_FLD);
        }
        /// <summary>
        /// Set check all row in grid
        /// </summary>
        /// <author>Trada</author>
        /// <date>Monday, June 6 2005</date>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void chkSelectAll_CheckedChanged(object sender, EventArgs e)
        {
            const string METHOD_NAME = THIS + ".chkSelectAll_CheckedChanged()";
            try
            {

                if ((blnStateOfCheck) && (gridData.RowCount != 0))
                {
                    for (int i = 0; i < gridData.RowCount; i++)
                    {
                        gridData[i, SELECT] = chkSelectAll.Checked ? true.ToString() : false.ToString();
                    }
                }

            }
            catch (PCSException ex)
            {
                // Displays the error message if throwed from PCSException.
                PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
            catch (Exception ex)
            {
                // Displays the error message if throwed from system.
                PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
        }

        /// <summary>
        /// Call Release() from BO class
        /// </summary>
        /// <author>Trada</author>
        /// <date>Monday, June 6 2005</date>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnRelease_Click(object sender, EventArgs e)
        {
            const string METHOD_NAME = THIS + ".btnRelease_Click()";
            try
            {
                if (gridData.RowCount == 0)
                {
                    PCSMessageBox.Show(ErrorCode.MESSAGE_PO_APPROVE_NO_DATA_IN_GRID, MessageBoxIcon.Information);
                    return;
                }

                if (CheckDataGridToRelease())
                {
                    List<PRO_WorkOrderCompletion> listWOCompletion = new List<PRO_WorkOrderCompletion>();
                    foreach (DataRow drData in dsetTemp.Tables[0].Rows)
                    {
                        if (drData.RowState != DataRowState.Deleted)
                        {
                            bool blnSelected = false;
                            try
                            {
                                blnSelected = Convert.ToBoolean(drData[SELECT]);
                            }
                            catch { }
                            if (blnSelected)
                            {
                                PRO_WorkOrderCompletion obj = new PRO_WorkOrderCompletion();
                                obj.CompletedQuantity = Convert.ToDecimal(drData[PRO_WorkOrderCompletionTable.COMPLETEDQUANTITY_FLD]);
                                try
                                {
                                    obj.NGQuantity = Convert.ToDecimal(drData[PRO_WorkOrderCompletionTable.NGQUANTITY_FLD]);
                                }
                                catch { }
                                obj.WorkOrderCompletionID = (int)drData[PRO_WorkOrderCompletionTable.WORKORDERCOMPLETIONID_FLD];
                                if (drData[PRO_WorkOrderCompletionTable.BINID_FLD] != null && drData[PRO_WorkOrderCompletionTable.BINID_FLD].ToString() != string.Empty)
                                    obj.BinID = Convert.ToInt32(drData[PRO_WorkOrderCompletionTable.BINID_FLD]);
                                if (drData[PRO_WorkOrderCompletionTable.LOCATIONID_FLD] != null && drData[PRO_WorkOrderCompletionTable.LOCATIONID_FLD].ToString() != string.Empty)
                                    obj.LocationID = Convert.ToInt32(drData[PRO_WorkOrderCompletionTable.LOCATIONID_FLD]);
                                if (drData[PRO_WorkOrderCompletionTable.MASTERLOCATIONID_FLD] != null && drData[PRO_WorkOrderCompletionTable.MASTERLOCATIONID_FLD].ToString() != string.Empty)
                                    obj.MasterLocationID = Convert.ToInt32(drData[PRO_WorkOrderCompletionTable.MASTERLOCATIONID_FLD]);
                                if (drData[PRO_WorkOrderCompletionTable.CCNID_FLD] != null && drData[PRO_WorkOrderCompletionTable.CCNID_FLD].ToString() != string.Empty)
                                    obj.CCNID = Convert.ToInt32(drData[PRO_WorkOrderCompletionTable.CCNID_FLD]);
                                if (drData[PRO_WorkOrderCompletionTable.PRODUCTID_FLD] != null && drData[PRO_WorkOrderCompletionTable.PRODUCTID_FLD].ToString() != string.Empty)
                                    obj.ProductID = Convert.ToInt32(drData[PRO_WorkOrderCompletionTable.PRODUCTID_FLD]);
                                listWOCompletion.Add(obj);
                            }
                        }
                    }
                    ApprovalWorkOrderCompletionBO boReleaseWOCompletion = new ApprovalWorkOrderCompletionBO();
                    boReleaseWOCompletion.ReleaseCompletion(listWOCompletion);

                    BindDataToGrid();


                    PCSMessageBox.Show(ErrorCode.MESSAGE_AFTER_SAVE_DATA);
                }
                else
                    PCSMessageBox.Show(ErrorCode.MESSAGE_RELEASE_WO_SELECT_WOLINE, MessageBoxIcon.Error);

            }
            catch (PCSException ex)
            {
                // Displays the error message if throwed from PCSException.
                PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
            catch (Exception ex)
            {
                // displays the error message.
                PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
                // log message.
                try
                {
                    Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
        }
        /// <summary>
        /// CheckDataGridToRelease
        /// </summary>
        /// <author>Trada</author>
        /// <date>Thursday, June 16 2005</date>
        /// <returns>bool</returns>
        private bool CheckDataGridToRelease()
        {
            dsetTemp = dstApprovalWOCompletion.Clone();
            int pintNumRow = 0;
            for (int i = 0; i < gridData.RowCount; i++)
            {
                decimal decCompletedQuantity = 0, decNGQuantity = 0;
                try
                {
                    decCompletedQuantity = Convert.ToDecimal(gridData[i, PRO_WorkOrderCompletionTable.COMPLETEDQUANTITY_FLD]);
                }
                catch { }
                try
                {
                    decNGQuantity = Convert.ToDecimal(gridData[i, PRO_WorkOrderCompletionTable.NGQUANTITY_FLD]);
                }
                catch { }
                if (decCompletedQuantity < decNGQuantity)
                {
                    string[] strMsg = new string[] { "0", gridData.Columns[PRO_WorkOrderCompletionTable.COMPLETEDQUANTITY_FLD].Caption };
                    PCSMessageBox.Show(ErrorCode.MESSAGE_NUMBER_MUST_IN_SCOPE, MessageBoxIcon.Warning, strMsg);
                    return false;
                }

                if (gridData[i, SELECT].ToString().Trim() != TRUE)
                    pintNumRow++;
                else
                {
                    DataRow drNew = dsetTemp.Tables[0].NewRow();
                    drNew.ItemArray = dstApprovalWOCompletion.Tables[0].Rows[i].ItemArray;
                    dsetTemp.Tables[0].Rows.Add(drNew);
                }
            }
            //there is not any rows checked
            return pintNumRow != gridData.RowCount;
        }
        /// <summary>
        /// btnMasLoc_Click
        /// </summary>
        /// <Autho>Trada</Autho>
        /// <Date>Thursday, June 2, 2005</Date>
        /// <Description>
        /// btnMasLoc_Click
        /// </Description>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        private void btnFGoodsCode_Click(object sender, EventArgs e)
        {
            const string METHOD_NAME = THIS + ".btnFGoodsCode_Click()";
            try
            {

                DataRowView drwResult = null;
                drwResult = FormControlComponents.OpenSearchForm(SO_SaleOrderDetailTable.TABLE_NAME, SO_SaleOrderDetailTable.FGOODSCODE_FLD, txtFGoodsCode.Text.Trim(), null, true);
                if (drwResult != null)
                {
                    lblFGoodsCode.Tag = int.Parse(drwResult[SO_SaleOrderDetailTable.SALEORDERDETAILID_FLD].ToString());
                    txtFGoodsCode.Text = drwResult[SO_SaleOrderDetailTable.FGOODSCODE_FLD].ToString();
                }
            }
            catch (PCSException ex)
            {
                // displays the error message.
                PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
                // log message.
                try
                {
                    Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
            catch (Exception ex)
            {
                // displays the error message.
                PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
                // log message.
                try
                {
                    Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }

        }

        /// <summary>
        /// btnWorkOrder_Click
        /// </summary>
        /// <Autho>Trada</Autho>
        /// <Date>Thursday, June 2, 2005</Date>
        /// <Description>
        /// btnWorkOrder_Click
        /// </Description>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnWorkOrder_Click(object sender, EventArgs e)
        {
            const string METHOD_NAME = THIS + ".btnWorkOrder_Click()";
            try
            {
                Hashtable htbCriteria = new Hashtable();
                DataRowView drwResult = null;

                if (txtProductionLine.Text != string.Empty)
                {
                    htbCriteria.Add(PRO_ProductionLineTable.PRODUCTIONLINEID_FLD, txtProductionLine.Tag);
                }
                if (cboApproval.SelectedIndex == 0)
                {
                    htbCriteria.Add(PRO_WorkOrderDetailTable.STATUS_FLD, (int)WOLineStatus.Released);
                    drwResult = FormControlComponents.OpenSearchForm(V_WOUNRELEASE, PRO_WorkOrderMasterTable.WORKORDERNO_FLD, txtWorkOrder.Text.Trim(), htbCriteria, true);
                }
                else
                {
                    drwResult = FormControlComponents.OpenSearchForm(V_WOUNRELEASE, PRO_WorkOrderMasterTable.WORKORDERNO_FLD, txtWorkOrder.Text.Trim(), htbCriteria, false);
                }

                if (drwResult != null)
                {
                    //					if ((txtWorkOrder.Tag != null) && (txtWorkOrder.Tag.ToString() != drwResult[PRO_WorkOrderMasterTable.WORKORDERMASTERID_FLD].ToString()))
                    //					{
                    //						CreateDataSet();
                    //						gridData.DataSource = dstGridData.Tables[0];
                    //						FormControlComponents.RestoreGridLayout(gridData, dtbGridLayOut);
                    //					}	
                    txtWorkOrder.Text = drwResult[PRO_WorkOrderMasterTable.WORKORDERNO_FLD].ToString();
                    txtWorkOrder.Tag = drwResult[PRO_WorkOrderMasterTable.WORKORDERMASTERID_FLD];
                }
                //				}
            }
            catch (PCSException ex)
            {
                // Displays the error message if throwed from PCSException.
                PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
            catch (Exception ex)
            {
                // displays the error message.
                PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
                // log message.
                try
                {
                    Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }


        }

        /// <summary>
        /// Compare From Start date & To Start date
        /// </summary>
        /// <author>Trada</author>
        /// <date>Friday, June 3, 2005</date>
        /// <returns></returns>
        private bool IsValidateToDate()
        {
            const string METHOD_NAME = THIS + ".IsValidateToDate()";
            try
            {
                //if ToDate < FromDate then return false else return true
                if ((dtmFromStartDate.Value.ToString() != string.Empty) && (dtmToStartDate.Value.ToString() != string.Empty))
                {
                    if (DateTime.Parse(dtmFromStartDate.Value.ToString()) > DateTime.Parse(dtmToStartDate.Value.ToString()))
                    {
                        return false;
                    }
                }
                return true;
            }
            catch (PCSException ex)
            {
                throw new PCSException(ex.mCode, METHOD_NAME, ex);

            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message, ex);

            }
        }

        /// <summary>
        /// dtmToStartDate_Leave
        /// </summary>
        /// <author>Trada</author>
        /// <date>Friday, June 3 2005</date>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void dtmToStartDate_Leave(object sender, EventArgs e)
        {
            const string METHOD_NAME = THIS + ".dtmToStartDate_Leave()";
            try
            {
                OnLeaveControl(sender, e);


            }
            catch (PCSException ex)
            {
                // Displays the error message if throwed from PCSException.
                PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
            catch (Exception ex)
            {
                // Displays the error message if throwed from system.
                PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }

        }

        /// <summary>
        /// ReleaseWorkOrder_Closing
        /// </summary>
        /// <author>Trada</author>
        /// <date>Monday, June 6 2005</date>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ReleaseWorkOrder_Closing(object sender, CancelEventArgs e)
        {
            const string METHOD_NAME = THIS + ".ReleaseWorkOrder_Closing()";
            try
            {
                for (int i = 0; i < gridData.RowCount; i++)
                {
                    if (gridData[i, SELECT].ToString() == true.ToString())
                    {
                        DialogResult confirmDialog = PCSMessageBox.Show(ErrorCode.MESSAGE_QUESTION_RELEASE_BEFORE_CLOSE, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1, RELEASE);
                        switch (confirmDialog)
                        {
                            case DialogResult.Yes:
                                //Save before exit
                                btnRelease_Click(sender, new EventArgs());
                                break;
                            case DialogResult.No:
                                break;
                            case DialogResult.Cancel:
                                e.Cancel = true;
                                break;
                        }
                        return;
                    }
                }
            }
            catch (PCSException ex)
            {
                // Displays the error message if throwed from PCSException.
                PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
            catch (Exception ex)
            {
                // displays the error message.
                PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
                // log message.
                try
                {
                    Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
        }
        /// <summary>
        /// btnClose_Click
        /// </summary>
        /// <author>Trada</author>
        /// <date>Monday, June 6 2005</date>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        //**************************************************************************              
        ///    <Description>
        ///       OnEnterControl
        ///    </Description>
        ///    <Inputs>
        ///    </Inputs>
        ///    <Outputs>
        ///    </Outputs>
        ///    <Returns>
        ///       void
        ///    </Returns>
        ///    <Authors>
        ///       Dungla
        ///    </Authors>
        ///    <History>
        ///       Tuesday, March 29, 2005
        ///    </History>
        ///    <Notes>
        ///    </Notes>
        //**************************************************************************
        private void OnEnterControl(object sender, EventArgs e)
        {
            const string METHOD_NAME = THIS + ".OnEnterControl()";
            try
            {
                FormControlComponents.OnEnterControl(sender, e);
            }
            catch (PCSException ex)
            {
                // Displays the error message if throwed from PCSException.
                PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
            catch (Exception ex)
            {
                // Displays the error message if throwed from system.
                PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
        }
        //**************************************************************************              
        ///    <Description>
        ///       OnLeaveControl
        ///    </Description>
        ///    <Inputs>
        ///    </Inputs>
        ///    <Outputs>
        ///    </Outputs>
        ///    <Returns>
        ///       void
        ///    </Returns>
        ///    <Authors>
        ///       Dungla
        ///    </Authors>
        ///    <History>
        ///       Tuesday, March 29, 2005
        ///    </History>
        ///    <Notes>
        ///    </Notes>
        //**************************************************************************
        private void OnLeaveControl(object sender, EventArgs e)
        {
            const string METHOD_NAME = THIS + ".OnLeaveControl()";
            try
            {
                FormControlComponents.OnLeaveControl(sender, e);
            }
            catch (PCSException ex)
            {
                // displays the error message.
                PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
                // log message.
                try
                {
                    Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
            catch (Exception ex)
            {
                // displays the error message.
                PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
                // log message.
                try
                {
                    Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
        }
        /// <summary>
        /// ReleaseWorkOrder_KeyDown
        /// </summary>
        /// <author>Trada</author>
        /// <date>Tuesday, June 7 2005</date>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ReleaseWorkOrder_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Escape)
            {
                this.Close();
            }
        }

        /// <summary>
        /// txtMasLoc_KeyDown
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <author>Trada</author>
        /// <date>Wednesday, June 22 2005</date>
        private void txtFGoodsCode_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F4)
            {
                btnFGoodsCode_Click(sender, e);
            }
        }

        /// <summary>
        /// chkSelectAll_Enter
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <author>Trada</author>
        /// <date>Wednesday, June 22 2005</date>
        private void chkSelectAll_Enter(object sender, EventArgs e)
        {
            blnStateOfCheck = true;
        }

        /// <summary>
        /// chkSelectAll_Leave
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <author>Trada</author>
        /// <date>Wednesday, June 22 2005</date>
        private void chkSelectAll_Leave(object sender, EventArgs e)
        {
            blnStateOfCheck = false;
        }
        /// <summary>
        /// txtWorkOrder_KeyDown
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <author>Trada</author>
        /// <date>Wednesday, June 29 2005</date>
        private void txtWorkOrder_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F4)
            {
                btnWorkOrder_Click(sender, e);
            }
        }

        private void btnProductionLine_Click(object sender, EventArgs e)
        {
            const string METHOD_NAME = THIS + ".btnProductionLine_Click()";
            try
            {
                Hashtable htbCriteria = new Hashtable();
                htbCriteria.Add(MST_CCNTable.CCNID_FLD, (int)cboCCN.SelectedValue);

                //Call OpenSearchForm for selecting Production Line
                DataRowView drwResult = FormControlComponents.OpenSearchForm(PRO_ProductionLineTable.TABLE_NAME, PRO_ProductionLineTable.CODE_FLD, txtProductionLine.Text.Trim(), null, true);

                //If has Production Line matched searching condition, fill values to form's controls
                if (drwResult != null)
                {
                    if (txtProductionLine.Tag.ToString() != string.Empty)
                    {
                        if (int.Parse(txtProductionLine.Tag.ToString()) != int.Parse(drwResult[PRO_ProductionLineTable.PRODUCTIONLINEID_FLD].ToString()))
                        {
                            //clear work order
                            txtWorkOrder.Text = string.Empty;
                            txtWorkOrder.Tag = 0;
                        }
                    }
                    txtProductionLine.Text = drwResult[PRO_ProductionLineTable.CODE_FLD].ToString();
                    txtProductionLine.Tag = drwResult[PRO_ProductionLineTable.PRODUCTIONLINEID_FLD];
                }
            }
            catch (PCSException ex)
            {
                // Displays the error message if throwed from PCSException.
                PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
            catch (Exception ex)
            {
                // Displays the error message if throwed from system.
                PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
        }
        /// <summary>
        /// txtProductionLine_Validating
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void txtProductionLine_Validating(object sender, CancelEventArgs e)
        {
            const string METHOD_NAME = THIS + ".txtProductionLine_Validating()";
            try
            {
                if (!txtProductionLine.Modified) return;
                if (txtProductionLine.Text == string.Empty)
                {
                    txtWorkOrder.Text = string.Empty;
                    txtWorkOrder.Tag = 0;
                    //					CreateDataSet();
                    //					gridData.DataSource = dstGridData.Tables[0];
                    //					FormControlComponents.RestoreGridLayout(gridData, dtbGridLayOut);
                    return;
                }
                Hashtable htbCriteria = new Hashtable();
                htbCriteria.Add(MST_CCNTable.CCNID_FLD, (int)cboCCN.SelectedValue);

                //Call OpenSearchForm for selecting Production Line
                DataRowView drwResult = FormControlComponents.OpenSearchForm(PRO_ProductionLineTable.TABLE_NAME, PRO_ProductionLineTable.CODE_FLD, txtProductionLine.Text.Trim(), null, false);

                //If has Production Line matched searching condition, fill values to form's controls
                if (drwResult != null)
                {
                    if (int.Parse(txtProductionLine.Tag.ToString()) != 0)
                    {
                        if (int.Parse(txtProductionLine.Tag.ToString()) != int.Parse(drwResult[PRO_ProductionLineTable.PRODUCTIONLINEID_FLD].ToString()))
                        {
                            //clear work order
                            txtWorkOrder.Text = string.Empty;
                            txtWorkOrder.Tag = 0;
                        }
                    }
                    txtProductionLine.Text = drwResult[PRO_ProductionLineTable.CODE_FLD].ToString();
                    txtProductionLine.Tag = drwResult[PRO_ProductionLineTable.PRODUCTIONLINEID_FLD];
                }
                else
                    e.Cancel = true;
            }
            catch (PCSException ex)
            {
                // Displays the error message if throwed from PCSException.
                PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
            catch (Exception ex)
            {
                // Displays the error message if throwed from system.
                PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
        }

        private void txtProductionLine_KeyDown(object sender, KeyEventArgs e)
        {
            if (btnProductionLine.Enabled && e.KeyCode == Keys.F4)
            {
                btnProductionLine_Click(sender, new EventArgs());
            }
        }
        /// <summary>
        /// cboRelease_SelectedIndexChanged
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <author>Trada</author>
        /// <date>Wednesday, May 24 2006</date>
        private void cboRelease_SelectedIndexChanged(object sender, EventArgs e)
        {
            const string METHOD_NAME = THIS + ".cboRelease_SelectedIndexChanged()";
            try
            {
                if (cboApproval.SelectedIndex == (int)QAStatusEnum.Unknow - 1)
                {
                    btnRelease.Enabled = true;
                    btnUnRelease.Enabled = true;
                }
                else
                {
                    if (cboApproval.SelectedIndex == (int)QAStatusEnum.Failure - 1)
                    {
                        btnRelease.Enabled = true;
                        btnUnRelease.Enabled = false;
                    }
                    else
                    {
                        btnRelease.Enabled = false;
                        btnUnRelease.Enabled = true;
                    }
                }
            }
            catch (PCSException ex)
            {
                // Displays the error message if throwed from PCSException.
                PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
            catch (Exception ex)
            {
                // Displays the error message if throwed from system.
                PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
        }
        /// <summary>
        /// txtWorkOrder_Validating
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <author>Trada</author>
        /// <date>Tuesday, May 30 2006</date>
        private void txtWorkOrder_Validating(object sender, CancelEventArgs e)
        {
            const string METHOD_NAME = THIS + ".txtWorkOrder_Validating()";
            try
            {
                if (!txtWorkOrder.Modified) return;
                if (txtWorkOrder.Text == string.Empty)
                {
                    txtWorkOrder.Tag = null;
                    //					CreateDataSet();
                    //					gridData.DataSource = dstGridData.Tables[0];
                    //					FormControlComponents.RestoreGridLayout(gridData, dtbGridLayOut);
                    return;
                }
                DataRowView drwResult = null;
                Hashtable htbCriteria = new Hashtable();

                if (txtProductionLine.Text != string.Empty)
                {
                    htbCriteria.Add(PRO_ProductionLineTable.PRODUCTIONLINEID_FLD, txtProductionLine.Tag);
                }
                if (cboApproval.SelectedIndex == 0)
                {
                    htbCriteria.Add(PRO_WorkOrderDetailTable.STATUS_FLD, (int)WOLineStatus.Unreleased);
                    drwResult = FormControlComponents.OpenSearchForm(V_WOUNRELEASE, PRO_WorkOrderMasterTable.WORKORDERNO_FLD, txtWorkOrder.Text.Trim(), htbCriteria, false);
                }
                else
                {
                    htbCriteria.Add(PRO_WorkOrderDetailTable.STATUS_FLD, (int)WOLineStatus.Released);
                    //drwResult = FormControlComponents.OpenSearchForm(V_WOUNRELEASED, PRO_WorkOrderMasterTable.WORKORDERNO_FLD, txtWorkOrder.Text.Trim(), htbCriteria, false);
                    drwResult = FormControlComponents.OpenSearchForm(V_WOUNRELEASE, PRO_WorkOrderMasterTable.WORKORDERNO_FLD, txtWorkOrder.Text.Trim(), htbCriteria, false);
                }
                if (drwResult != null)
                {
                    //					if ((txtWorkOrder.Tag != null) && (txtWorkOrder.Tag.ToString() != drwResult[PRO_WorkOrderMasterTable.WORKORDERMASTERID_FLD].ToString()))
                    //					{
                    //						CreateDataSet();
                    //						gridData.DataSource = dstGridData.Tables[0];
                    //						FormControlComponents.RestoreGridLayout(gridData, dtbGridLayOut);
                    //					}
                    txtWorkOrder.Text = drwResult[PRO_WorkOrderMasterTable.WORKORDERNO_FLD].ToString();
                    txtWorkOrder.Tag = drwResult[PRO_WorkOrderMasterTable.WORKORDERMASTERID_FLD];
                }
                else
                    e.Cancel = true;
                //				}
            }
            catch (PCSException ex)
            {
                // Displays the error message if throwed from PCSException.
                PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
            catch (Exception ex)
            {
                // displays the error message.
                PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
                // log message.
                try
                {
                    Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
        }
        /// <summary>
        /// txtMasLoc_Validating
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <author>Trada</author>
        /// <date>Tuesday, May 30 2006</date>
        private void txtFGoodsCode_Validating(object sender, CancelEventArgs e)
        {
            const string METHOD_NAME = THIS + ".txtFGoodsCode_Validating()";
            try
            {
                if (txtFGoodsCode.Text.Trim() != string.Empty)
                {
                    DataRowView drwResult = null;
                    drwResult = FormControlComponents.OpenSearchForm(SO_SaleOrderDetailTable.TABLE_NAME, SO_SaleOrderDetailTable.FGOODSCODE_FLD, txtFGoodsCode.Text.Trim(), null, false);
                    if (drwResult != null)
                    {
                        lblFGoodsCode.Tag = int.Parse(drwResult[SO_SaleOrderDetailTable.SALEORDERDETAILID_FLD].ToString());
                        txtFGoodsCode.Text = drwResult[SO_SaleOrderDetailTable.FGOODSCODE_FLD].ToString();
                    }
                }
            }
            catch (PCSException ex)
            {
                // displays the error message.
                PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
                // log message.
                try
                {
                    Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
            catch (Exception ex)
            {
                // displays the error message.
                PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
                // log message.
                try
                {
                    Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
        }

        private void lblFromStartDate_Click(object sender, EventArgs e)
        {

        }

        private void btnPartNumber_Click(object sender, EventArgs e)
        {
            const string METHOD_NAME = THIS + ".btnSearchProductCode_Click()";
            try
            {
                DataRowView drwResult = null;
                Hashtable htbConditon = new Hashtable();
                if (cboCCN.SelectedValue != null)
                {
                    htbConditon.Add(ITM_ProductTable.CCNID_FLD, cboCCN.SelectedValue.ToString());
                }
                else
                {
                    PCSMessageBox.Show(ErrorCode.MESSAGE_RGA_CCN, MessageBoxIcon.Warning);
                    cboCCN.Focus();
                    return;
                }
                htbConditon.Add(ITM_ProductTable.MAKEITEM_FLD, "1");
                htbConditon.Add(ITM_ProductTable.QASTATUS_FLD, "1");

                drwResult = FormControlComponents.OpenSearchForm(ITM_ProductTable.TABLE_NAME, ITM_ProductTable.CODE_FLD, txtPartNumber.Text, htbConditon, true);
                if (drwResult != null)
                {
                    txtPartNumber.Tag = drwResult[ITM_ProductTable.PRODUCTID_FLD];
                    txtPartNumber.Text = drwResult[ITM_ProductTable.CODE_FLD].ToString();
                }
            }
            catch (Exception ex)
            {
                // displays the error message.
                PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
                // log message.
                try
                {
                    Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
        }

        private void txtPartNumber_Validating(object sender, CancelEventArgs e)
        {
            const string METHOD_NAME = THIS + ".txtPartNumber_Validating()";
            try
            {
                if (txtPartNumber.Text.ToString().Trim() != string.Empty)
                {
                    DataRowView drwResult = null;
                    Hashtable htbConditon = new Hashtable();
                    if (cboCCN.SelectedValue != null)
                    {
                        htbConditon.Add(ITM_ProductTable.CCNID_FLD, cboCCN.SelectedValue.ToString());
                    }
                    else
                    {
                        PCSMessageBox.Show(ErrorCode.MESSAGE_RGA_CCN, MessageBoxIcon.Warning);
                        cboCCN.Focus();
                        return;
                    }
                    drwResult = FormControlComponents.OpenSearchForm(ITM_ProductTable.TABLE_NAME, ITM_ProductTable.CODE_FLD, txtPartNumber.Text, htbConditon, false);
                    if (drwResult != null)
                    {
                        txtPartNumber.Tag = int.Parse(drwResult[ITM_ProductTable.PRODUCTID_FLD].ToString());
                        txtPartNumber.Text = drwResult[ITM_ProductTable.CODE_FLD].ToString();
                    }
                }
                else
                {
                    txtPartNumber.Tag = 0;
                    txtPartNumber.Text = string.Empty;
                }
            }
            catch (Exception ex)
            {
                // displays the error message.
                PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
                // log message.
                try
                {
                    Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
        }

        private void txtPartNumber_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F4)
            {
                btnPartNumber_Click(sender, e);
            }
        }

        private void btnUnRelease_Click(object sender, EventArgs e)
        {
            const string METHOD_NAME = THIS + ".btnUnRelease_Click()";
            try
            {
                if (gridData.RowCount == 0)
                {
                    PCSMessageBox.Show(ErrorCode.MESSAGE_PO_APPROVE_NO_DATA_IN_GRID, MessageBoxIcon.Information);
                    return;
                }

                if (CheckDataGridToRelease())
                {
                    List<PRO_WorkOrderCompletion> listWOCompletion = new List<PRO_WorkOrderCompletion>();
                    foreach (DataRow drData in dsetTemp.Tables[0].Rows)
                    {
                        if (drData.RowState != DataRowState.Deleted)
                        {
                            bool blnSelected = false;
                            try
                            {
                                blnSelected = Convert.ToBoolean(drData[SELECT]);
                            }
                            catch { }
                            if (blnSelected)
                            {
                                PRO_WorkOrderCompletion obj = new PRO_WorkOrderCompletion();
                                obj.CompletedQuantity = Convert.ToDecimal(drData[PRO_WorkOrderCompletionTable.COMPLETEDQUANTITY_FLD]);
                                try
                                {
                                    obj.NGQuantity = Convert.ToDecimal(drData[PRO_WorkOrderCompletionTable.NGQUANTITY_FLD]);
                                }
                                catch { }
                                obj.WorkOrderCompletionID = (int)drData[PRO_WorkOrderCompletionTable.WORKORDERCOMPLETIONID_FLD];
                                if (drData[PRO_WorkOrderCompletionTable.BINID_FLD] != null && drData[PRO_WorkOrderCompletionTable.BINID_FLD].ToString() != string.Empty)
                                    obj.BinID = Convert.ToInt32(drData[PRO_WorkOrderCompletionTable.BINID_FLD]);
                                if (drData[PRO_WorkOrderCompletionTable.LOCATIONID_FLD] != null && drData[PRO_WorkOrderCompletionTable.LOCATIONID_FLD].ToString() != string.Empty)
                                    obj.LocationID = Convert.ToInt32(drData[PRO_WorkOrderCompletionTable.LOCATIONID_FLD]);
                                if (drData[PRO_WorkOrderCompletionTable.MASTERLOCATIONID_FLD] != null && drData[PRO_WorkOrderCompletionTable.MASTERLOCATIONID_FLD].ToString() != string.Empty)
                                    obj.MasterLocationID = Convert.ToInt32(drData[PRO_WorkOrderCompletionTable.MASTERLOCATIONID_FLD]);
                                if (drData[PRO_WorkOrderCompletionTable.CCNID_FLD] != null && drData[PRO_WorkOrderCompletionTable.CCNID_FLD].ToString() != string.Empty)
                                    obj.CCNID = Convert.ToInt32(drData[PRO_WorkOrderCompletionTable.CCNID_FLD]);
                                if (drData[PRO_WorkOrderCompletionTable.PRODUCTID_FLD] != null && drData[PRO_WorkOrderCompletionTable.PRODUCTID_FLD].ToString() != string.Empty)
                                    obj.ProductID = Convert.ToInt32(drData[PRO_WorkOrderCompletionTable.PRODUCTID_FLD]);
                                listWOCompletion.Add(obj);
                            }
                        }
                    }
                    ApprovalWorkOrderCompletionBO boReleaseWOCompletion = new ApprovalWorkOrderCompletionBO();
                    boReleaseWOCompletion.UnreleaseCompletion(listWOCompletion);

                    BindDataToGrid();

                    PCSMessageBox.Show(ErrorCode.MESSAGE_AFTER_SAVE_DATA);
                }
                else
                    PCSMessageBox.Show(ErrorCode.MSG_LABORTIME_SELECTWODETAIL, MessageBoxIcon.Error);

            }
            catch (PCSException ex)
            {
                // Displays the error message if throwed from PCSException.
                PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
                try
                {
                    // Log error message into log file.
                    Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    // Show message if logger has an error.
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
            catch (Exception ex)
            {
                // displays the error message.
                PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
                // log message.
                try
                {
                    Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
                }
                catch
                {
                    PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
                }
            }
        }
    }
}
